chore: tidy unused code

This commit is contained in:
Mythie
2023-09-19 02:40:58 +00:00
parent 1be0b9e01f
commit b411db40da
3 changed files with 1 additions and 3 deletions

View File

@ -1,7 +1,6 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const path = require('path');
const { withContentlayer } = require('next-contentlayer');
const { remapVercelEnv } = require('../../scripts/remap-vercel-env.cjs');
const { parsed: env } = require('dotenv').config({
path: path.join(__dirname, '../../.env.local'),

View File

@ -1,7 +1,6 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const path = require('path');
const { version } = require('./package.json');
const { remapVercelEnv } = require('../../scripts/remap-vercel-env.cjs');
const { parsed: env } = require('dotenv').config({
path: path.join(__dirname, '../../.env.local'),

View File

@ -39,7 +39,7 @@ export const getDatabaseUrl = () => {
if (url.hostname.endsWith('neon.tech')) {
const [projectId, ...rest] = url.hostname.split('.');
if (!projectId.endsWith('-bouncer')) {
if (!projectId.endsWith('-pooler')) {
url.hostname = `${projectId}-pooler.${rest.join('.')}`;
}