Skip to content

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

Python

set up vite base URL for when it's deployed

Abi Raja02ddd63db53a
diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts
index 8b0c365c..3e7414d9 100644
--- a/frontend/vite.config.ts
+++ b/frontend/vite.config.ts
@@ -5,6 +5,7 @@ import react from "@vitejs/plugin-react";
// https://vitejs.dev/config/
export default defineConfig({
+ base: process.env.VITE_IS_DEPLOYED ? "/free-tools/screenshot-to-code/" : "",
plugins: [react(), checker({ typescript: true })],
resolve: {
alias: {