Skip to content

Commit

Permalink
fix vite config for read_only
Browse files Browse the repository at this point in the history
  • Loading branch information
enjalot committed Jan 29, 2024
1 parent e842ebc commit 88976f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
const mode = process.env.MODE || 'development';
// import wasm from 'vite-plugin-wasm'
// import topLevelAwait from "vite-plugin-top-level-await";
export default defineConfig(({ mode }) => ({
base: mode === 'read_only' ? '/latent-scope/' : '/',
plugins: [react()],
build: {
outDir: `dist/${mode}`,
Expand Down

0 comments on commit 88976f2

Please sign in to comment.