Search code examples
reactjsvitevercel

React Vite deployed to Vercel But showing white page


Created a React Vite static page and it has deployed using vercel but when deployed it has white page

Repo:https://github.com/Aarif-Hussain-A-Nassar/Educa

Link:https://educa-gold.vercel.app/

Tried redeploying but still same result and also made homepage as homepage:"." Also made homage page as vercel url but same result


Solution

  • Missing Files Detected. rebuild the app enter image description here

    if does not work change in vite.config.ts and rebuild

    import { defineConfig } from 'vite'
    import react from '@vitejs/plugin-react'
    
    // https://vitejs.dev/config/
    export default defineConfig({
      //base:"/Educa/",
      plugins: [react()],
    })