sohei1l commited on
Commit
5a31167
·
1 Parent(s): 6af5715

Fix asset paths for Hugging Face Spaces deployment

Browse files
assets/{index-_wt6zbZg.js → index-B-zNz8Yq.js} RENAMED
The diff for this file is too large to render. See raw diff
 
index.html CHANGED
@@ -2,11 +2,11 @@
2
  <html lang="en">
3
  <head>
4
  <meta charset="UTF-8" />
5
- <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
- <title>Vite + React</title>
8
- <script type="module" crossorigin src="/assets/index-_wt6zbZg.js"></script>
9
- <link rel="stylesheet" crossorigin href="/assets/index-F_aFpJd-.css">
10
  </head>
11
  <body>
12
  <div id="root"></div>
 
2
  <html lang="en">
3
  <head>
4
  <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="./vite.svg" />
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>🎵 clip-tagger</title>
8
+ <script type="module" crossorigin src="./assets/index-B-zNz8Yq.js"></script>
9
+ <link rel="stylesheet" crossorigin href="./assets/index-F_aFpJd-.css">
10
  </head>
11
  <body>
12
  <div id="root"></div>
vite.config.js CHANGED
@@ -4,4 +4,9 @@ import react from '@vitejs/plugin-react'
4
  // https://vite.dev/config/
5
  export default defineConfig({
6
  plugins: [react()],
 
 
 
 
 
7
  })
 
4
  // https://vite.dev/config/
5
  export default defineConfig({
6
  plugins: [react()],
7
+ base: './', // Use relative paths for HF Spaces
8
+ build: {
9
+ outDir: 'dist',
10
+ assetsDir: 'assets'
11
+ }
12
  })