-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnext.config.mjs
37 lines (33 loc) · 943 Bytes
/
next.config.mjs
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
await import("./src/env.mjs");
import { createVanillaExtractPlugin } from "@vanilla-extract/next-plugin";
const withVanillaExtract = createVanillaExtractPlugin();
/** @type {import('next').NextConfig} */
const nextConfig = {
redirects: async () => {
return [
{
source: "/construct",
destination: "/builder",
permanent: true,
},
{
source: "/constructor",
destination: "/builder",
permanent: true,
},
];
},
async rewrites() {
return [
{
source: "/bee.js",
destination: "https://cdn.splitbee.io/sb.js",
},
{
source: "/_hive/:slug",
destination: "https://hive.splitbee.io/:slug",
},
];
},
};
export default withVanillaExtract(nextConfig);