fix: remove localhost

This commit is contained in:
Benno Tielen 2026-03-12 08:59:40 +01:00
parent 794ac2d9c9
commit eafda90a41
3 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,6 @@
NEXT_PUBLIC_SITE_ID=chemnitz
DATABASE_URI=mongodb://127.0.0.1/dreikoenige DATABASE_URI=mongodb://127.0.0.1/dreikoenige
PAYLOAD_SECRET=YOUR_SECRET_HERE PAYLOAD_SECRET=YOUR_SECRET_HERE
GOOGLE_BUCKET=google_storage_bucket #can be omitted GOOGLE_BUCKET=google_storage_bucket #can be omitted
RESEND_API_KEY=some_api_key RESEND_API_KEY=some_api_key
PUBLIC_URL=http://localhost:3000 NEXT_PUBLIC_SERVER_URL=http://localhost:3000

View file

@ -9,7 +9,7 @@ export const RefreshRouteOnSave: React.FC = () => {
return ( return (
<PayloadLivePreview <PayloadLivePreview
refresh={() => router.refresh()} refresh={() => router.refresh()}
serverURL={process.env.PUBLIC_URL || "http://localhost:3000"} serverURL={process.env.NEXT_PUBLIC_SERVER_URL || ''}
/> />
) )
} }

View file

@ -75,7 +75,6 @@ export default buildConfig({
} }
}, },
livePreview: { livePreview: {
url: 'http://localhost:3000',
collections: ['blog', 'event', 'group', 'pages', 'parish'], collections: ['blog', 'event', 'group', 'pages', 'parish'],
}, },
}, },