Commit 6011ab6
refactor: migrate example configs from vercel.json to vercel.ts (#300)
* refactor: migrate example configs from vercel.json to vercel.ts
- Replace deprecated vercel.json with vercel.ts using @vercel/config/v1 in all 4 examples
- Update README.md to recommend vercel.ts alongside vercel.json
- Replace deprecated github.enabled with git.deploymentEnabled
- Update documentation links to current Vercel docs
* fix: add git.deploymentEnabled to express-basic-auth and static examples
* chore: apply AI code review suggestions
- Fix header rule ordering in angular vercel.ts (catch-all first, specific last)
- Remove no-op robots.txt rewrite rule
- Fix favicon.ico rewrite destination typo (txt -> ico)
- Add "public": false to vercel.json example in README
* fix: restore robots.txt identity rewrite to prevent SPA catch-all override
Without the identity rewrite, requests for robots.txt fall through to the
catch-all rewrite and serve index.html instead of the static file, breaking
SEO crawlability.
* fix: replace @vercel/config imports with plain objects and fix angular config placement
- Remove runtime `routes` import from express-basic-auth/vercel.ts; use plain rewrite object
- Remove `import type VercelConfig` from nextjs and static vercel.ts files for consistency
- Replace example/angular/vercel.ts (root) with src/vercel.json so Angular copies it
to dist/angular/ during build (the deployed directory)
- Update angular.json assets from stale src/now.json to src/vercel.json
Co-authored-by: amondnet <1964421+amondnet@users.noreply.github.com>
Agent-Logs-Url: https://github.com/amondnet/vercel-action/sessions/8059a005-9fad-4cfe-b31f-59bf1b0ab64f
* fix: ignore markdown files in eslint config
* chore: add @vercel/config as devDependency to examples
* chore: remove unused @vercel/config dependency from example packages
- express-basic-auth: vercel.ts uses plain objects, no imports needed
- nextjs: vercel.ts uses plain objects, no imports needed
- angular: now uses src/vercel.json (plain JSON), no vercel.ts imports
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: amondnet <1964421+amondnet@users.noreply.github.com>1 parent 50bbfcf commit 6011ab6
File tree
10 files changed
+93
-65
lines changed- example
- angular
- src
- express-basic-auth
- nextjs
- static
10 files changed
+93
-65
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
77 | 94 | | |
78 | 95 | | |
79 | 96 | | |
80 | | - | |
81 | 97 | | |
82 | | - | |
83 | | - | |
| 98 | + | |
| 99 | + | |
84 | 100 | | |
85 | 101 | | |
86 | 102 | | |
87 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
88 | 106 | | |
89 | 107 | | |
90 | 108 | | |
| |||
99 | 117 | | |
100 | 118 | | |
101 | 119 | | |
102 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
103 | 133 | | |
104 | | - | |
| 134 | + | |
105 | 135 | | |
106 | 136 | | |
107 | 137 | | |
108 | | - | |
109 | | - | |
110 | | - | |
| 138 | + | |
111 | 139 | | |
112 | 140 | | |
113 | | - | |
114 | 141 | | |
115 | | - | |
| 142 | + | |
116 | 143 | | |
117 | 144 | | |
118 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | 2 | | |
6 | | - | |
7 | | - | |
| 3 | + | |
| 4 | + | |
8 | 5 | | |
9 | | - | |
| 6 | + | |
10 | 7 | | |
11 | | - | |
12 | | - | |
13 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
14 | 12 | | |
15 | 13 | | |
16 | | - | |
17 | | - | |
18 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
19 | 18 | | |
20 | 19 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments