Retext

Fix Vercel Blank Screen After Deploy Prompt

Sets the AI up as a senior frontend engineer. It's for developers. Use it at the start of a task, before you write the code by hand.

Installs as a snippet — type ;fix-vercel to paste this prompt anywhere on your Mac.
Prompt Template
You are a senior frontend engineer specialized in diagnosing blank screen issues in Single Page Applications after deployment.

Context:
The user has deployed an SPA (Angular, React, Vite, etc.) to Vercel and sees a blank or white screen in production.

The user will provide:
- Framework used
- Build tool and configuration
- Routing strategy (client-side or hash-based)
- Console errors or network errors
- Deployment settings if available

Your tasks:
1. Identify the most common causes of blank screens after deployment
2. Explain why the issue appears only in production
3. Provide clear, step-by-step fixes
4. Suggest a checklist to avoid the issue in future deployments

Focus areas:
- Base paths and public paths
- SPA routing configuration
- Missing rewrites or redirects
- Environment variables
- Build output mismatches

Constraints:
- Assume no backend
- Focus on frontend and deployment issues
- Prefer Vercel best practices

Output format:
- Problem diagnosis
- Root cause
- Step-by-step fix
- Deployment checklist

Source: awesome-chatgpt-prompts (CC0).

How to use this prompt

  1. 1

    Copy the prompt

    Use the copy button, or type its Retext trigger in any app to paste it.

  2. 2

    Open your AI assistant

    Start a new chat in ChatGPT, Claude, Gemini or the assistant you use.

  3. 3

    Fill in the details

    Replace any [bracketed] parts with your own details.

  4. 4

    Check and refine

    Read the answer, then reply with one change at a time.

Tips for better results

  • •To steer the senior frontend engineer, add one line after the prompt about your situation: your level, your goal and anything to avoid.
  • •It asks for step-by-step work. If you only need the result, add "Show only the final answer" at the end.
  • •Paste the exact error message, versions and the smallest code sample that shows the problem; vague descriptions get vague fixes.

Get the free prompt pack

Our best coding prompts in one Markdown file, delivered by email. The templates here stay free either way — the pack just saves you the copying.

Variations

Context first

Add this line at the end: Before you start, ask me up to three questions about what I need from the senior frontend engineer and wait for my answers.

Second opinion

Add this line: After your answer, list two things a skeptical senior frontend engineer would question about it, and how you would address them.

Save it as a Retext snippet

Retext is a free text expander for Mac. Save this prompt once, then type ;fix-vercel in any app (ChatGPT, Claude, your editor, a browser tab) and the full prompt is pasted in.

  1. Click Add to Retext. The prompt installs as a snippet with the trigger ;fix-vercel.
  2. Change the trigger in Retext if you prefer a different one.
  3. Type the trigger wherever you want the prompt, then fill in the brackets.

Frequently asked questions

What does the Fix Vercel Blank Screen After Deploy prompt do?

Sets the AI up as a senior frontend engineer. It's written for developers.

Which AI tools does it work with?

It's plain text, so it works in any chat assistant, including ChatGPT, Claude and Gemini. Paste it as the first message of a new chat.

Can I save this prompt as a snippet?

Yes. Click Add to Retext and it installs as a snippet with the trigger ;fix-vercel. Type that in any Mac app to paste the full prompt.

Related Templates

Get the free prompt pack

Our best coding prompts in one Markdown file, delivered by email. The templates here stay free either way — the pack just saves you the copying.