Skip to content

Conversation

@benmccann
Copy link
Member

@benmccann benmccann commented Jan 26, 2022

Make the AMP validation happen in a handle hook. This should fix #3330 (it won't allow disabling it, but it will make it so that it's correct) and be a step towards #2603. It wouldn't be hard to move this to an external package for users to call. However, the actual AMP HTML generation is pretty tied into SvelteKit and I'm not sure how we'd change that

@changeset-bot
Copy link

changeset-bot bot commented Jan 26, 2022

🦋 Changeset detected

Latest commit: 032c916

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sveltejs/kit Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify
Copy link

netlify bot commented Jan 26, 2022

✔️ Deploy Preview for kit-demo canceled.

🔨 Explore the source changes: 032c916

🔍 Inspect the deploy log: https://app.netlify.com/sites/kit-demo/deploys/61f2c596e161710007ab990e

Copy link
Member

@Rich-Harris Rich-Harris left a comment

Choose a reason for hiding this comment

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

it might be worth adding a test for this somehow?

@benmccann
Copy link
Member Author

We do have amp tests already in packages/kit/test/apps/amp that test that the validator works correctly. This is just moving code rather than adding anything new, so I don't necessarily think we need new tests

@Rich-Harris Rich-Harris merged commit 5af1b92 into master Jan 27, 2022
@Rich-Harris Rich-Harris deleted the amp-hook branch January 27, 2022 16:24
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.

Selectively Disable AMP Validation

3 participants