From a2ad8f7e20799335fc908a6523d5429740dd6140 Mon Sep 17 00:00:00 2001 From: Francisco Solla Date: Sun, 15 Mar 2026 15:28:48 -0300 Subject: [PATCH] revert changes made to run on cPanel --- .env.example | 1 - app.js | 26 ------------------- app_wrapper.cjs | 1 - next.config.mjs | 4 --- .../page.tsx | 15 +++-------- 5 files changed, 3 insertions(+), 44 deletions(-) delete mode 100644 app.js delete mode 100644 app_wrapper.cjs rename src/app/(frontend)/{whatsapp => mandato-no-whatsapp}/page.tsx (80%) diff --git a/.env.example b/.env.example index cef72e80..4a8dbaf4 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,4 @@ DATABASE_URL=postgresql://USER:PASSWORD@HOST:5432/DATABASE PAYLOAD_SECRET=YOUR_SECRET_HERE BLOB_READ_WRITE_TOKEN=YOUR_BLOB_TOKEN_HERE -NEXT_BASE_PATH=/mandato NEXT_PUBLIC_SITE_URL=https://jorgesolla.com.br diff --git a/app.js b/app.js deleted file mode 100644 index cc704b7c..00000000 --- a/app.js +++ /dev/null @@ -1,26 +0,0 @@ -import { createServer } from 'node:http' -import next from 'next' - -const dev = process.env.NODE_ENV !== 'production' -const port = Number(process.env.PORT) || 3000 -const host = process.env.HOST || '127.0.0.1' - -const app = next({ - dev, - hostname: host, - port, -}) - -const handle = app.getRequestHandler() - -app - .prepare() - .then(() => { - createServer((req, res) => handle(req, res)).listen(port, host, () => { - console.log(`> Ready on http://${host}:${port}`) - }) - }) - .catch((error) => { - console.error('Failed to start Next.js server', error) - process.exit(1) - }) diff --git a/app_wrapper.cjs b/app_wrapper.cjs deleted file mode 100644 index 151253bd..00000000 --- a/app_wrapper.cjs +++ /dev/null @@ -1 +0,0 @@ -(() => import('./app.js'))() diff --git a/next.config.mjs b/next.config.mjs index 74394258..930f351d 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,13 +1,9 @@ import { withPayload } from '@payloadcms/next/withPayload' /** @type {import('next').NextConfig} */ -const basePath = process.env.NEXT_BASE_PATH || '' -const assetPrefix = process.env.NEXT_ASSET_PREFIX || undefined const allowedImageHost = process.env.NEXT_PUBLIC_SITE_URL || 'https://jorgesolla.com.br' const nextConfig = { - basePath, - assetPrefix, images: { remotePatterns: [new URL(`${allowedImageHost}/**`)], }, diff --git a/src/app/(frontend)/whatsapp/page.tsx b/src/app/(frontend)/mandato-no-whatsapp/page.tsx similarity index 80% rename from src/app/(frontend)/whatsapp/page.tsx rename to src/app/(frontend)/mandato-no-whatsapp/page.tsx index 54487cc5..cd15e500 100644 --- a/src/app/(frontend)/whatsapp/page.tsx +++ b/src/app/(frontend)/mandato-no-whatsapp/page.tsx @@ -1,14 +1,11 @@ -import { SocialLinks } from '@/components/socialLinks' import { WhatsappForm } from '@/components/WhatsappForm' import Image from 'next/image' export default function Page() { - const basePath = process.env.NEXT_BASE_PATH || '' - return (
@@ -31,20 +28,14 @@ export default function Page() {
- +

Seus dados estão seguros. Utilizamos suas informações apenas para contato e envio de conteúdos relacionados.