-
Notifications
You must be signed in to change notification settings - Fork 4
feat: add tutorial redirects and noindex headers in vercel.json #47
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
Changes from all commits
921b732
ad90907
1f8597c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,7 @@ | |
| "$schema": "https://openapi.vercel.sh/vercel.json", | ||
| "headers": [ | ||
| { | ||
| "source": "_app/immutable/workers/(.*)", | ||
| "source": "/_app/immutable/workers/:path*", | ||
| "headers": [ | ||
| { | ||
| "key": "cross-origin-opener-policy", | ||
|
|
@@ -17,6 +17,153 @@ | |
| "value": "cross-origin" | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "source": "/src", | ||
| "headers": [ | ||
| { | ||
| "key": "X-Robots-Tag", | ||
| "value": "noindex, nofollow, noarchive" | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "source": "/src/:path*", | ||
| "headers": [ | ||
| { | ||
| "key": "X-Robots-Tag", | ||
| "value": "noindex, nofollow, noarchive" | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "source": "/tutorial/lib", | ||
| "headers": [ | ||
| { | ||
| "key": "X-Robots-Tag", | ||
| "value": "noindex, nofollow, noarchive" | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "source": "/tutorial/lib/:path*", | ||
| "headers": [ | ||
| { | ||
| "key": "X-Robots-Tag", | ||
| "value": "noindex, nofollow, noarchive" | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "source": "/tutorial/types.ts", | ||
| "headers": [ | ||
| { | ||
| "key": "X-Robots-Tag", | ||
| "value": "noindex, nofollow, noarchive" | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "source": "/tutorial/web3-provider.ts", | ||
| "headers": [ | ||
| { | ||
| "key": "X-Robots-Tag", | ||
| "value": "noindex, nofollow, noarchive" | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "source": "/package.json", | ||
| "headers": [ | ||
| { | ||
| "key": "X-Robots-Tag", | ||
| "value": "noindex, nofollow, noarchive" | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "source": "/tsconfig.json", | ||
| "headers": [ | ||
| { | ||
| "key": "X-Robots-Tag", | ||
| "value": "noindex, nofollow, noarchive" | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "source": "/vite.config.ts", | ||
| "headers": [ | ||
| { | ||
| "key": "X-Robots-Tag", | ||
| "value": "noindex, nofollow, noarchive" | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "source": "/.gitignore", | ||
| "headers": [ | ||
| { | ||
| "key": "X-Robots-Tag", | ||
| "value": "noindex, nofollow, noarchive" | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "redirects": [ | ||
| { | ||
| "source": "/tutorial/getting-started-order", | ||
| "destination": "/tutorial/getting-started", | ||
| "permanent": true | ||
| }, | ||
| { | ||
| "source": "/tutorial/create-pre-signed-order", | ||
| "destination": "/tutorial/getting-started", | ||
| "permanent": true | ||
| }, | ||
| { | ||
| "source": "/tutorial/create-order-app-data", | ||
| "destination": "/tutorial/getting-started", | ||
| "permanent": true | ||
| }, | ||
| { | ||
| "source": "/tutorial/create-eth-flow", | ||
| "destination": "/tutorial/getting-started", | ||
| "permanent": true | ||
| }, | ||
| { | ||
| "source": "/tutorial/simple-app-data", | ||
| "destination": "/tutorial/getting-started", | ||
| "permanent": true | ||
| }, | ||
| { | ||
| "source": "/tutorial/cancel-eth-flow", | ||
| "destination": "/tutorial/cancel-on-chain-order", | ||
| "permanent": true | ||
| }, | ||
| { | ||
| "source": "/tutorial/approve-sell-token-order", | ||
| "destination": "/tutorial/approve-cow-protocol", | ||
| "permanent": true | ||
| }, | ||
| { | ||
| "source": "/tutorial/orderbook-upload-app-data", | ||
| "destination": "/tutorial/getting-started", | ||
| "permanent": true | ||
| }, | ||
| { | ||
| "source": "/tutorial/view-app-data", | ||
| "destination": "/tutorial/getting-started", | ||
| "permanent": true | ||
| }, | ||
| { | ||
| "source": "/tutorial/sign-order", | ||
| "destination": "/tutorial/submit-order", | ||
| "permanent": true | ||
| }, | ||
| { | ||
| "source": "/tutorial/cancel-pre-signed-order", | ||
| "destination": "/tutorial/getting-started", | ||
| "permanent": true | ||
| } | ||
|
Comment on lines
+112
to
167
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Redirect destinations don't match PR description. The PR description states that these 11 tutorial paths should redirect to Please clarify the intended behavior:
|
||
| ] | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.