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

feat(examples): use experimental edge runtime with grafbase #42992

Merged
merged 3 commits into from Nov 17, 2022

Conversation

notrab
Copy link
Contributor

@notrab notrab commented Nov 16, 2022

This PR adds the experimental runtime as shown in a guide that links to this example.

Examples

  • Make sure the linting passes by running pnpm build && pnpm lint
  • The "examples guidelines" are followed from our contributing doc

@ijjk ijjk added the examples Issue/PR related to examples label Nov 16, 2022
@notrab notrab changed the title feat(config): use experimental edge runtime feat(examples): use experimental edge runtime with grafbase Nov 16, 2022
@@ -4,6 +4,7 @@ const nextConfig = {
swcMinify: true,
experimental: {
appDir: true,
runtime: 'experimental-edge',
Copy link
Member

Choose a reason for hiding this comment

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

Adding this to the root config will currently make all app paths dynamic and revalidate won't be able to be honored currently.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nice 👌

Copy link
Member

Choose a reason for hiding this comment

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

Is the mentioned behavior desired? If so it may confuse users as revalidate is being configured but not used here.

Copy link
Contributor Author

@notrab notrab Nov 17, 2022

Choose a reason for hiding this comment

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

@ijjk I totally missed revalidate was still exported. Thank you

I will update this to be export const revalidate = 0 so it's always rendered dynamically or remove it completely...

@ijjk ijjk merged commit 0440404 into vercel:canary Nov 17, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
examples Issue/PR related to examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants