Sfoglia il codice sorgente

[demo]Modify svelte kit for github page

dufu1991 2 anni fa
parent
commit
199fe83c3b
2 ha cambiato i file con 4 aggiunte e 6 eliminazioni
  1. 0 2
      demo/.github/workflows/releases-demo.yml
  2. 4 4
      demo/svelte.config.js

+ 0 - 2
demo/.github/workflows/releases-demo.yml

@@ -37,8 +37,6 @@ jobs:
           node-version: 20.x
           cache: 'npm'
       - name: Install dependencies and build
-        env:
-          BASE_PATH: '/'
         run: |
           npm ci
           npm run build

+ 4 - 4
demo/svelte.config.js

@@ -11,10 +11,10 @@ const config = {
 			// 可能因主机而异
 			fallback: 'index.html',
 		}),
-		paths: {
-			// @ts-ignore
-			base: process.argv.includes('dev') ? '' : process.env.BASE_PATH,
-		},
+		// paths: {
+		// 	// @ts-ignore
+		// 	base: process.argv.includes('dev') ? '' : process.env.BASE_PATH,
+		// },
 	},
 	onwarn: (warning, handler) => {
 		if (warning.code.startsWith('a11y-')) {