update base to deploy at root
This commit is contained in:
parent
541e662ae0
commit
2ba81690bf
@ -8,7 +8,7 @@ import { createHtmlPlugin } from "vite-plugin-html";
|
|||||||
export default ({ mode }) => {
|
export default ({ mode }) => {
|
||||||
process.env = { ...process.env, ...loadEnv(mode, process.cwd()) };
|
process.env = { ...process.env, ...loadEnv(mode, process.cwd()) };
|
||||||
return defineConfig({
|
return defineConfig({
|
||||||
base: process.env.VITE_IS_DEPLOYED ? "/free-tools/screenshot-to-code/" : "",
|
base: "",
|
||||||
plugins: [
|
plugins: [
|
||||||
react(),
|
react(),
|
||||||
checker({ typescript: true }),
|
checker({ typescript: true }),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user