mirror of
https://github.com/documenso/documenso.git
synced 2025-11-14 08:42:12 +10:00
chore: tidy unused code
This commit is contained in:
@ -1,7 +1,6 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const { withContentlayer } = require('next-contentlayer');
|
const { withContentlayer } = require('next-contentlayer');
|
||||||
const { remapVercelEnv } = require('../../scripts/remap-vercel-env.cjs');
|
|
||||||
|
|
||||||
const { parsed: env } = require('dotenv').config({
|
const { parsed: env } = require('dotenv').config({
|
||||||
path: path.join(__dirname, '../../.env.local'),
|
path: path.join(__dirname, '../../.env.local'),
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const { version } = require('./package.json');
|
const { version } = require('./package.json');
|
||||||
const { remapVercelEnv } = require('../../scripts/remap-vercel-env.cjs');
|
|
||||||
|
|
||||||
const { parsed: env } = require('dotenv').config({
|
const { parsed: env } = require('dotenv').config({
|
||||||
path: path.join(__dirname, '../../.env.local'),
|
path: path.join(__dirname, '../../.env.local'),
|
||||||
|
|||||||
@ -39,7 +39,7 @@ export const getDatabaseUrl = () => {
|
|||||||
if (url.hostname.endsWith('neon.tech')) {
|
if (url.hostname.endsWith('neon.tech')) {
|
||||||
const [projectId, ...rest] = url.hostname.split('.');
|
const [projectId, ...rest] = url.hostname.split('.');
|
||||||
|
|
||||||
if (!projectId.endsWith('-bouncer')) {
|
if (!projectId.endsWith('-pooler')) {
|
||||||
url.hostname = `${projectId}-pooler.${rest.join('.')}`;
|
url.hostname = `${projectId}-pooler.${rest.join('.')}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user