Skip to content

Commit 6e53dad

Browse files
committed
Fix basename for examples
1 parent fafb0b4 commit 6e53dad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/create-vite-config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { dirname } from 'node:path'
1+
import { basename, dirname } from 'node:path'
22
import { fileURLToPath } from 'node:url'
33

44
import react from '@vitejs/plugin-react'
@@ -9,7 +9,7 @@ import tsconfigPaths from 'vite-tsconfig-paths'
99
export default async (url) =>
1010
await defineConfig({
1111
envPrefix: 'SEAM_',
12-
base: './',
12+
base: `./${basename(dirname(fileURLToPath(url)))}`,
1313
root: dirname(fileURLToPath(url)),
1414
plugins: [tsconfigPaths(), react()],
1515
server: {

0 commit comments

Comments
 (0)