Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move catch-all redirect to an Astro endpoint #31

Merged
merged 11 commits into from Mar 28, 2023
Merged

Conversation

itsMapleLeaf
Copy link
Contributor

The redirect was messing with the Netlify dev server and breaking live reload, so I added SSR to let Astro handle that instead

the redirect was messing with the netlify dev server and breaking live reload, so I added SSR to let astro handle that instead

commit config
@netlify
Copy link

netlify bot commented Mar 28, 2023

Deploy Preview for astro-new ready!

Name Link
🔨 Latest commit 85e5737
🔍 Latest deploy log https://app.netlify.com/sites/astro-new/deploys/64236b236c1fc500085bdcd4
😎 Deploy Preview https://deploy-preview-31--astro-new.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@itsMapleLeaf itsMapleLeaf changed the base branch from main to next March 28, 2023 15:44
@itsMapleLeaf itsMapleLeaf marked this pull request as ready for review March 28, 2023 16:01
src/env.d.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@tony-sull tony-sull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Pretty sure this was originally written before SSR support, nice to have this logic all in the Astro app instead of split between SSG and a custom serverless function 🙌

Added one note related to the config file format in case it fixes the @astrojs/netlify typing issue, but very unimportant and non-blocking

@itsMapleLeaf itsMapleLeaf merged commit 62a7af2 into next Mar 28, 2023
6 checks passed
@itsMapleLeaf itsMapleLeaf deleted the ssr-redirect-route branch March 28, 2023 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants