Skip to content

Commit 7bc8940

Browse files
authored
Add /code to route to the github repo (#8)
Signed-off-by: Adam Gutglick <[email protected]>
1 parent 11e2d23 commit 7bc8940

File tree

2 files changed

+40
-14
lines changed

2 files changed

+40
-14
lines changed

README.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,31 @@ This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-
22

33
## Getting Started
44

5-
First, run the development server:
5+
First, install dependencies and run the development server:
66

77
```bash
8+
npm install
89
npm run dev
9-
# or
10+
```
11+
12+
or
13+
14+
```bash
15+
yarn install
1016
yarn dev
11-
# or
17+
```
18+
19+
or
20+
21+
```bash
22+
pnpm install
1223
pnpm dev
13-
# or
24+
```
25+
26+
or
27+
28+
```bash
29+
bun install
1430
bun dev
1531
```
1632

next.config.ts

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,34 @@ const nextConfig: NextConfig = withPlausibleProxy()({
55
async headers() {
66
return [
77
{
8-
source: '/(.*)',
8+
source: "/(.*)",
99
headers: [
1010
{
11-
key: 'X-Content-Type-Options',
12-
value: 'nosniff',
11+
key: "X-Content-Type-Options",
12+
value: "nosniff"
1313
},
1414
{
15-
key: 'X-Frame-Options',
16-
value: 'DENY',
15+
key: "X-Frame-Options",
16+
value: "DENY"
1717
},
1818
{
19-
key: 'Content-Security-Policy',
20-
value: "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' plausible.io; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob:; font-src 'self' data:; connect-src 'self' plausible.io vitals.vercel-insights.com; worker-src 'self' blob:; child-src 'self' blob:;",
21-
},
22-
],
23-
},
19+
key: "Content-Security-Policy",
20+
value:
21+
"default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' plausible.io; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob:; font-src 'self' data:; connect-src 'self' plausible.io vitals.vercel-insights.com; worker-src 'self' blob:; child-src 'self' blob:;"
22+
}
23+
]
24+
}
2425
];
2526
},
27+
async redirects() {
28+
return [
29+
{
30+
source: "/code",
31+
destination: "https://github.com/vortex-data/vortex",
32+
permanent: true
33+
}
34+
];
35+
}
2636
});
2737

2838
export default nextConfig;

0 commit comments

Comments
 (0)