feat: remove postgres & use a single docker container

This commit is contained in:
Elias Schneider
2022-10-11 22:30:06 +02:00
parent e2b3e6a1e8
commit 388ac395ba
18 changed files with 349 additions and 274 deletions

View File

@@ -1,8 +1,5 @@
import { NextApiRequest, NextApiResponse } from "next";
import httpProxyMiddleware from "next-http-proxy-middleware";
import getConfig from "next/config";
const { publicRuntimeConfig } = getConfig();
export const config = {
api: {
@@ -15,5 +12,5 @@ export const config = {
export default (req: NextApiRequest, res: NextApiResponse) =>
httpProxyMiddleware(req, res, {
// You can use the `http-proxy` option
target: publicRuntimeConfig.BACKEND_URL,
target: "http://localhost:8080",
});