Skip to content

Commit ec7ff79

Browse files
committed
Route github page data source to cloudflare
Signed-off-by: Jay Wang <jay@zijie.wang>
1 parent b9c692c commit ec7ff79

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/components/embedding/Embedding.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
3737
// Resolve the embedding data files based on the embedding
3838
let DATA_BASE = `${import.meta.env.BASE_URL}data`;
39-
if (import.meta.env.MODE === 'vercel') {
39+
if (import.meta.env.MODE === 'vercel' || import.meta.env.MODE === 'github') {
4040
DATA_BASE = 'https://pub-596951ee767949aba9096a18685c74bd.r2.dev';
4141
}
4242

vite.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,8 @@ export default defineConfig(({ command, mode }) => {
3838
case 'github': {
3939
// Production: github page
4040
return {
41-
base: '/diffusiondb/explorer',
4241
build: {
43-
outDir: 'explorer'
42+
outDir: 'gh-page'
4443
},
4544
plugins: [svelte()]
4645
};

0 commit comments

Comments
 (0)