-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnext.config.mjs
More file actions
205 lines (202 loc) · 5.94 KB
/
next.config.mjs
File metadata and controls
205 lines (202 loc) · 5.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
import { createMDX } from "fumadocs-mdx/next";
const withMDX = createMDX();
/** @type {import('next').NextConfig} */
const config = {
reactStrictMode: true,
// Remove Webpack customization – not supported in Turbopack
turbopack: {
// Add any Turbopack-specific options here (currently optional)
},
async rewrites() {
return [];
},
redirects: async () => {
return [
{
source: "/start",
destination: "/",
permanent: false,
},
{
source: "/.well-known/llms.txt",
destination: "/llms.txt",
permanent: true, // 301 redirect - tells crawlers this is the canonical location
},
{
source: "/overview/llms-full.txt",
destination: "/llms-full.txt",
permanent: true,
},
{
source: "/steel-js-sdk",
destination: "https://www.npmjs.com/package/steel-sdk",
permanent: true,
},
{
source: "/steel-python-sdk",
destination: "https://pypi.org/project/steel-sdk/",
permanent: true,
},
{
source: "/api-reference",
destination: "https://steel.apidocumentation.com/api-reference",
permanent: true,
},
// {
// source: "/overview/steel-cli",
// destination: "https://github.com/steel-dev/cli",
// permanent: true,
// },
{
source: "/overview/self-hosting/render",
destination: "https://render.com/deploy?image=steeldev/steel",
permanent: true,
},
// {
// source: "/overview/self-hosting/railway",
// destination: "https://railway.app/template/FQG9Ca",
// permanent: true,
// },
{
source: "/integrations/valtown/quickstart",
destination: "https://www.val.town/x/steel/steel_puppeteer_starter",
permanent: true,
},
// Legacy cookbook URLs. Concept pages now merge language variants via
// a hash-driven Fumadocs Tabs component, so old language-suffixed
// slugs redirect to `/cookbook/<concept>#<lang>`.
{
source: "/cookbook/playwright-ts",
destination: "/cookbook/playwright#typescript",
permanent: true,
},
{
source: "/cookbook/playwright-py",
destination: "/cookbook/playwright#python",
permanent: true,
},
{
source: "/cookbook/playwright-python",
destination: "/cookbook/playwright#python",
permanent: true,
},
{ source: "/cookbook/puppeteer-ts", destination: "/cookbook/puppeteer", permanent: true },
{
source: "/cookbook/stagehand-ts",
destination: "/cookbook/stagehand#typescript",
permanent: true,
},
{
source: "/cookbook/stagehand-py",
destination: "/cookbook/stagehand#python",
permanent: true,
},
{
source: "/cookbook/claude-computer-use-ts",
destination: "/cookbook/claude-computer-use#typescript",
permanent: true,
},
{
source: "/cookbook/claude-computer-use-py",
destination: "/cookbook/claude-computer-use#python",
permanent: true,
},
{
source: "/cookbook/openai-computer-use-ts",
destination: "/cookbook/openai-computer-use#typescript",
permanent: true,
},
{
source: "/cookbook/openai-computer-use-py",
destination: "/cookbook/openai-computer-use#python",
permanent: true,
},
{
source: "/cookbook/gemini-computer-use-ts",
destination: "/cookbook/gemini-computer-use#typescript",
permanent: true,
},
{
source: "/cookbook/gemini-computer-use-py",
destination: "/cookbook/gemini-computer-use#python",
permanent: true,
},
{
source: "/cookbook/openai-agents-ts",
destination: "/cookbook/openai-agents#typescript",
permanent: true,
},
{
source: "/cookbook/openai-agents-py",
destination: "/cookbook/openai-agents#python",
permanent: true,
},
{
source: "/cookbook/vercel-ai-sdk-ts",
destination: "/cookbook/vercel-ai-sdk",
permanent: true,
},
{ source: "/cookbook/files-api", destination: "/cookbook/files", permanent: true },
{
source: "/cookbook/steel-browser-use-starter",
destination: "/cookbook/browser-use",
permanent: true,
},
{
source: "/cookbook/credentials-starter",
destination: "/cookbook/credentials",
permanent: true,
},
{
source: "/cookbook/auth-context-starter",
destination: "/cookbook/auth-context",
permanent: true,
},
{
source: "/cookbook/extensions-starter",
destination: "/cookbook/extensions",
permanent: true,
},
{ source: "/cookbook/files-starter", destination: "/cookbook/files", permanent: true },
// Legacy /overview/guides/* pages were merged into the integration and
// cookbook sections.
{
source: "/overview/guides/playwright-node",
destination: "/cookbook/playwright#typescript",
permanent: true,
},
{
source: "/overview/guides/playwright-python",
destination: "/cookbook/playwright#python",
permanent: true,
},
{
source: "/overview/guides/puppeteer",
destination: "/cookbook/puppeteer",
permanent: true,
},
{
source: "/overview/guides/selenium",
destination: "/cookbook/selenium",
permanent: true,
},
];
},
async headers() {
return [
{
source: "/(.*)",
headers: [
{
key: "Link",
value: '</llms.txt>; rel="alternate"; type="text/markdown", </llms-full.txt>; rel="alternate"; type="text/markdown"',
},
],
},
];
},
images: {
domains: ["cdn.openai.com", "github.com", "avatars.githubusercontent.com"],
},
};
export default withMDX(config);