mirror of
https://github.com/complexcaresolutions/frontend.sensualmoment.de.git
synced 2026-03-17 13:53:53 +00:00
- Project foundation: Next.js 16, Tailwind v4, Google Fonts, payload-contracts - Shared components: Navigation (scroll effect), Footer (Deep Navy), Logo (wordmark), ScrollReveal - Homepage: Hero, AboutPreview, GalleryPreview, Testimonials, Packages, BlogPreview, Contact - Inner pages: ueber-mich, galerie, pakete, journal, journal/[slug], kontakt, faq, impressum, datenschutz, agb - CMS API client (src/lib/api.ts) with tenant-scoped fetch helpers - server.js for Plesk Passenger deployment - Color palette: Dark Wine, Blush, Bordeaux, Deep Navy, Creme, Espresso - Fonts: Playfair Display (headlines), Cormorant Garamond (body), Josefin Sans (UI) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
30 lines
821 B
JavaScript
30 lines
821 B
JavaScript
const { createServer } = require("http")
|
|
const { parse } = require("url")
|
|
const next = require("next")
|
|
|
|
const dev = process.env.NODE_ENV !== "production"
|
|
const hostname = "localhost"
|
|
const port = parseInt(process.env.PORT || "3000", 10)
|
|
|
|
const app = next({ dev, hostname, port })
|
|
const handle = app.getRequestHandler()
|
|
|
|
app.prepare().then(() => {
|
|
createServer(async (req, res) => {
|
|
try {
|
|
const parsedUrl = parse(req.url, true)
|
|
await handle(req, res, parsedUrl)
|
|
} catch (err) {
|
|
console.error("Error occurred handling", req.url, err)
|
|
res.statusCode = 500
|
|
res.end("internal server error")
|
|
}
|
|
})
|
|
.once("error", (err) => {
|
|
console.error(err)
|
|
process.exit(1)
|
|
})
|
|
.listen(port, () => {
|
|
console.log("> Ready on http://" + hostname + ":" + port)
|
|
})
|
|
})
|