File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,11 @@ http {
2727 location / {
2828 root /usr/share/nginx/html;
2929 index index .html index .htm;
30- try_files $uri $uri / /index .html;
30+ }
31+
32+ location /2024 / {
33+ alias /usr/share/nginx/html/;
34+ index index .html index .htm;
3135 }
3236 }
3337}
Original file line number Diff line number Diff line change 44 "scripts" : {
55 "dev" : " vite dev" ,
66 "dev:host" : " vite --host" ,
7- "build" : " vite build" ,
7+ "build" : " vite build --base=/2024/ " ,
88 "preview" : " vite preview" ,
99 "check" : " svelte-kit sync && svelte-check --tsconfig ./tsconfig.json" ,
1010 "check:watch" : " svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch" ,
Original file line number Diff line number Diff line change @@ -12,7 +12,10 @@ const config = {
1212 precompress : false ,
1313 fallback : 'index.html' ,
1414 strict : false
15- } )
15+ } ) ,
16+ paths : {
17+ base : '/2024'
18+ }
1619 } ,
1720 preprocess : [
1821 preprocess ( {
Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ import { sveltekit } from '@sveltejs/kit/vite';
22import type { UserConfig } from 'vite' ;
33
44const config : UserConfig = {
5- plugins : [ sveltekit ( ) ]
5+ plugins : [ sveltekit ( ) ] ,
6+ base : '/2024/'
67} ;
78
89export default config ;
You can’t perform that action at this time.
0 commit comments