Take portfolio offline with blank pages and blocked API routes
This commit is contained in:
@@ -2,6 +2,8 @@ import { defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react";
|
||||
|
||||
export default defineConfig({
|
||||
// Do not publish photos, verification files, or other assets while offline.
|
||||
publicDir: false,
|
||||
plugins: [react()],
|
||||
define: {
|
||||
"import.meta.env.VITE_MAX_UPLOAD_MB": JSON.stringify(process.env.VERCEL === "1" ? 4 : 20),
|
||||
|
||||
Reference in New Issue
Block a user