Project setup

This commit is contained in:
Darren Clarke 2022-12-02 10:55:56 +00:00
parent 6c45dec07b
commit 95a21d6f50
29 changed files with 12083 additions and 77 deletions

View file

@ -0,0 +1,17 @@
import NextAuth from "next-auth";
import Google from "next-auth/providers/google";
import Apple from "next-auth/providers/apple";
export default NextAuth({
providers: [
Google({
clientId: process.env.GOOGLE_CLIENT_ID,
clientSecret: process.env.GOOGLE_CLIENT_SECRET,
}),
Apple({
clientId: process.env.APPLE_CLIENT_ID,
clientSecret: process.env.APPLE_CLIENT_SECRET
}),
],
secret: process.env.NEXTAUTH_SECRET,
});

View file

@ -0,0 +1,18 @@
import { createProxyMiddleware } from "http-proxy-middleware";
import { NextApiRequest, NextApiResponse } from "next";
const proxy = createProxyMiddleware({
target: "https://help.cdr.link",
changeOrigin: true,
xfwd: false,
pathRewrite: { '^/zammad': '' }
});
export default proxy;
export const config = {
api: {
bodyParser: false,
externalResolver: true,
},
};