mirror of
https://github.com/documenso/documenso.git
synced 2026-07-26 09:54:51 +10:00
Revert "fix: support ipv6 for nextjs"
This reverts commit f9de6671e0aa29e25e872a80aa334d3319e3e522.
This commit is contained in:
@@ -4,8 +4,8 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
"build": "next build && tsc --project tsconfig.server.json",
|
"build": "next build",
|
||||||
"start": "node dist/index.js",
|
"start": "next start",
|
||||||
"lint": "next lint",
|
"lint": "next lint",
|
||||||
"db-studio": "prisma db studio",
|
"db-studio": "prisma db studio",
|
||||||
"stripe:listen": "stripe listen --forward-to localhost:3000/api/stripe/webhook"
|
"stripe:listen": "stripe listen --forward-to localhost:3000/api/stripe/webhook"
|
||||||
|
|||||||
@@ -1,22 +0,0 @@
|
|||||||
import { createServer } from 'http';
|
|
||||||
import next from 'next';
|
|
||||||
import { parse } from 'url';
|
|
||||||
|
|
||||||
const hostname = process.env.HOST || '[::]';
|
|
||||||
const port = parseInt(process.env.PORT || '3000', 10);
|
|
||||||
const dev = process.env.NODE_ENV !== 'production';
|
|
||||||
const app = next({ dev, hostname, port });
|
|
||||||
const handle = app.getRequestHandler();
|
|
||||||
|
|
||||||
app.prepare().then(() => {
|
|
||||||
createServer((req, res) => {
|
|
||||||
const parsedUrl = parse(req.url!, true)
|
|
||||||
handle(req, res, parsedUrl)
|
|
||||||
}).listen(port);
|
|
||||||
|
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.log(
|
|
||||||
`> Server listening at http://${hostname}:${port} as ${dev ? 'development' : process.env.NODE_ENV
|
|
||||||
}`
|
|
||||||
);
|
|
||||||
});
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "./tsconfig.json",
|
|
||||||
"compilerOptions": {
|
|
||||||
"module": "commonjs",
|
|
||||||
"outDir": "dist",
|
|
||||||
"target": "es2017",
|
|
||||||
"isolatedModules": false,
|
|
||||||
"noEmit": false
|
|
||||||
},
|
|
||||||
"include": ["server/**/*.ts"]
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user