diff --git a/Makefile b/Makefile index d85d651..5a070d3 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ venv: build: pnpm build - python3 manage.py collectstatic + python3 manage.py collectstatic -y setup-linux: sudo apt update \ diff --git a/perpus/settings.py b/perpus/settings.py index b0d95d8..5f36298 100644 --- a/perpus/settings.py +++ b/perpus/settings.py @@ -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 diff --git a/vite.config.js b/vite.config.js index 495baf8..d955c0c 100644 --- a/vite.config.js +++ b/vite.config.js @@ -22,7 +22,7 @@ export default defineConfig({ extensions: ['.js', '.json', '.svelte'], }, build: { - outDir: resolve('./static'), + outDir: resolve('./web/dist'), assetsDir: '', manifest: true, target: 'es2015',