Description
Hi All!
I've been using your template and I'm really enjoying it so far. I've ran into a small issue and I hope that anyone can help me out :)
I've cloned your repository and deployed it through Vercel. When I enter the production URL, everything seems to work fine on the / endpoint. If I try to enter the /blog endpoint, I'll receive a 500 HTTP error.
Here are the steps that I took from cloning the project to deployment.
Git clone [git@github.com:codewithdary/cdw-astro-test.git](mailto:git@github.com:codewithdary/cdw-astro-test.git)
cd cdw-astro-test
NPM installation
npm install
npm run build
npm run dev
Accessed website through localhost where everything seem to work fine, even the /blog endpoint.
http://localhost:3000/
Deployment through Vercel
npm install @astrojs/vercel
Added the following in my astro.config.mjs file
import { defineConfig } from 'astro/config';
import vercel from '@astrojs/vercel/serverless';
export default defineConfig({
output: 'server',
adapter: vercel(),
});
Added new files to Git
git add astro.config.mjs
git commit -m “Added Vercel”
git push
Installed Vercel CLI
npm i -g vercel
vercel
Configuration through Vercel CLI
? Set up and deploy “~/Desktop/workspace/cdw-astro-test”? [Y/n] y
? Which scope do you want to deploy to? codewithdary
? Link to existing project? [y/N] n
? What’s your project’s name? cdw-astro-test
? In which directory is your code located? ./
? Want to modify these settings? [y/N] N
Deployment was successful. If I try to access the page through my production URL, the homepage works fine, but once I click on the /blog endpoint in the navigation, I’ll receive the following URL error:
cdw-astro-test-kgybbvmqs-codewithdary.vercel.app is currently unable to handle this request.
HTTP ERROR 500
Can someone please guide me through this issue? The link to my GitHub repository can be found right here.