Skip to content

Commit

Permalink
Merge pull request #18 from xyzith/bugfix/removeAlias
Browse files Browse the repository at this point in the history
bugfix remove alias since it is not working on windws
  • Loading branch information
mcg25035 authored Feb 26, 2024
2 parents 715c000 + 656a6c1 commit 1e497df
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/containers/ArticlePage/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useSelector, useDispatch } from 'react-redux';
import ArticleContainer from './ArticleContainer';
import CommentContainer from './CommentContainer';

import { fetchArticle, fetchComments } from '@/slices';
import { fetchArticle, fetchComments } from '../../slices';
import './ArticlePage.scss';

const ArticlePage = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/containers/IndexPage/index.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useEffect } from 'react';
import { useDispatch } from 'react-redux';
import { fetchArticleList } from '@/slices';
import { fetchArticleList } from '../../slices';
import IdeaShow from './IdeaShow';
import IndexContentContainer from './IndexContentContainer';

Expand Down
2 changes: 1 addition & 1 deletion src/slices/article.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createSlice, createAsyncThunk } from '@reduxjs/toolkit';
import { article as articleAPI } from '@/utils/ArticleAPI';
import { article as articleAPI } from '../utils/ArticleAPI';

const initialState = {};

Expand Down
2 changes: 1 addition & 1 deletion src/slices/articleList.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createSlice, createAsyncThunk } from '@reduxjs/toolkit';
import { article as articleAPI } from '@/utils/ArticleAPI';
import { article as articleAPI } from '../utils/ArticleAPI';

const initialState = [];

Expand Down
2 changes: 1 addition & 1 deletion src/slices/comments.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createSlice, createAsyncThunk } from '@reduxjs/toolkit';
import { article as articleAPI } from '@/utils/ArticleAPI';
import { article as articleAPI } from '../utils/ArticleAPI';

const initialState = [];

Expand Down
5 changes: 0 additions & 5 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ export default defineConfig((configEnv) => ({
linters: [new EsLinter({ configEnv: configEnv })],
}),
],
resolve: {
alias: {
'@': path.resolve(__dirname, 'src')
}
},
server: {
proxy: {
'/api': 'http://localhost:3000'
Expand Down

0 comments on commit 1e497df

Please sign in to comment.