File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,11 +31,10 @@ jobs:
3131
3232 - run : npm ci
3333
34- - run : npm run build
34+ - name : Build site
35+ run : npm run build
3536 env :
36- BASE_PATH : /${{ github.event.repository.name }}
37-
38- - uses : actions/configure-pages@v5
37+ BASE_PATH : /neoxk
3938
4039 - uses : actions/upload-pages-artifact@v3
4140 with :
4645 runs-on : ubuntu-latest
4746 environment :
4847 name : github-pages
49- url : ${{ steps.deployment.outputs.page_url }}
5048 steps :
51- - id : deployment
52- uses : actions/deploy-pages@v4
53-
49+ - uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 11import adapter from '@sveltejs/adapter-static' ;
22import { vitePreprocess } from '@sveltejs/vite-plugin-svelte' ;
33
4- /** @type {import('@sveltejs/kit').Config } */
5- const dev = process . argv . includes ( 'dev' ) ;
6- const repoName = process . env . GITHUB_REPOSITORY ?. split ( '/' ) ?. [ 1 ] ;
7- const base = dev ? '' : process . env . BASE_PATH ?? ( repoName ? `/${ repoName } ` : '' ) ;
8-
94const config = {
10- // Consult https://svelte.dev/docs/kit/integrations
11- // for more information about preprocessors
125 preprocess : vitePreprocess ( ) ,
136
147 kit : {
@@ -20,7 +13,7 @@ const config = {
2013 strict : true
2114 } ) ,
2215 paths : {
23- base
16+ base : process . env . BASE_PATH ?? ''
2417 } ,
2518 prerender : {
2619 entries : [ '*' ]
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ export default defineConfig({
1212 define : {
1313 global : 'globalThis'
1414 } ,
15+ base : process . env . BASE_PATH ?? '' ,
1516 optimizeDeps : {
1617 esbuildOptions : {
1718 define : {
You can’t perform that action at this time.
0 commit comments