VIBN Frontend for Coolify deployment

This commit is contained in:
2026-02-15 19:25:52 -08:00
commit 40bf8428cd
398 changed files with 76513 additions and 0 deletions

26
index.js Normal file
View File

@@ -0,0 +1,26 @@
const { onRequest } = require('firebase-functions/v2/https');
const next = require('next');
const app = next({
dev: false,
conf: { distDir: '.next' },
});
const handle = app.getRequestHandler();
// Prepare the app on module load
const prepared = app.prepare();
exports.nextjsFunc = onRequest(
{
region: 'us-central1',
memory: '2GiB',
timeoutSeconds: 300,
maxInstances: 10,
minInstances: 0,
},
async (req, res) => {
await prepared;
return handle(req, res);
}
);