Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadhabibi14 committed Jan 27, 2024
1 parent 415acd5 commit 63d2e7c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ venv:

build:
pnpm build
python3 manage.py collectstatic
python3 manage.py collectstatic -y

setup-linux:
sudo apt update \
Expand Down
2 changes: 1 addition & 1 deletion perpus/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
STATIC_URL = 'static/'

# Where ViteJS assets are built.
DJANGO_VITE_ASSETS_PATH = BASE_DIR / 'web' / 'assets'
DJANGO_VITE_ASSETS_PATH = BASE_DIR / 'web' / 'dist'
DJANGO_VITE_DEV_MODE = True
if os.environ.get('WEB_ENV') == 'prod':
DJANGO_VITE_DEV_MODE = False
Expand Down
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default defineConfig({
extensions: ['.js', '.json', '.svelte'],
},
build: {
outDir: resolve('./static'),
outDir: resolve('./web/dist'),
assetsDir: '',
manifest: true,
target: 'es2015',
Expand Down

0 comments on commit 63d2e7c

Please sign in to comment.