Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: nope in database strings

Andras Bacsai03861af893ae
diff --git a/apps/api/src/routes/api/v1/base/index.ts b/apps/api/src/routes/api/v1/base/index.ts
index 622a5aa4f8..c0dfeb4b89 100644
--- a/apps/api/src/routes/api/v1/base/index.ts
+++ b/apps/api/src/routes/api/v1/base/index.ts
@@ -2,21 +2,14 @@ import { FastifyPluginAsync } from 'fastify';
import { errorHandler, listSettings, version } from '../../../../lib/common';
const root: FastifyPluginAsync = async (fastify): Promise<void> => {
- fastify.addHook('onRequest', async (request) => {
- try {
- return await request.jwtVerify();
- } catch(error){
- return {};
- }
- })
-
+ fastify.addHook('onRequest', async (request) => await request.jwtVerify());
fastify.get('/', async (request) => {
const teamId = request.user?.teamId;
const settings = await listSettings()
try {
return {
- ipv4: teamId ? settings.ipv4 : 'nope',
- ipv6: teamId ? settings.ipv6 : 'nope',
+ ipv4: teamId ? settings.ipv4 : null,
+ ipv6: teamId ? settings.ipv6 : null,
version,
whiteLabeled: process.env.COOLIFY_WHITE_LABELED === 'true',
whiteLabeledIcon: process.env.COOLIFY_WHITE_LABELED_ICON,