refactor: convert repository to monorepo with npm workspaces
Restructured the repository into a monorepo to better organize application code and maintenance scripts. ## Workspace Structure - web-app: Next.js application (all app code moved from root) - housekeeping: Database backup and maintenance scripts ## Key Changes - Moved all application code to web-app/ using git mv - Moved database scripts to housekeeping/ workspace - Updated Dockerfile for monorepo build process - Updated docker-compose files (volume paths: ./web-app/etc/hosts/) - Updated .gitignore for workspace-level node_modules - Updated documentation (README.md, CLAUDE.md, CHANGELOG.md) ## Migration Impact - Root package.json now manages workspaces - Build commands delegate to web-app workspace - All file history preserved via git mv - Docker build process updated for workspace structure 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
25
web-app/next.config.js
Normal file
25
web-app/next.config.js
Normal file
@@ -0,0 +1,25 @@
|
||||
const createNextIntlPlugin = require('next-intl/plugin');
|
||||
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
// Possible options:
|
||||
// - `undefined`: The default build output, `.next` directory, that works with production mode `next start` or a hosting provider like Vercel
|
||||
// - `'standalone'`: A standalone build output, `.next/standalone` directory, that only includes necessary files/dependencies. Useful for self-hosting in a Docker container.
|
||||
// - `'export'`: An exported build output, `out` directory, that only includes static HTML/CSS/JS. Useful for self-hosting without a Node.js server.
|
||||
output: "standalone", // needed for running the app in a Docker container
|
||||
experimental: {
|
||||
// "x-forwarded-host" is a HTTP header added by a reverse proxy,
|
||||
// and it contains the original host requested by the client
|
||||
// this is needed for the server to know which host to render
|
||||
// This however differs from the "Host" header, which results in
|
||||
// server rejecting API requests from the client
|
||||
// So here we tell Next.JS to accept requests where the "x-forwarded-host" equals and of the following values
|
||||
serverActions: { allowedOrigins: ["rezije.app", "rezije.app:80", "localhost:3001", "0.0.0.0:80"], }
|
||||
}
|
||||
};
|
||||
|
||||
const withNextIntl = createNextIntlPlugin('./app/i18n.ts');
|
||||
|
||||
const nextConfigIntl = withNextIntl(nextConfig);
|
||||
|
||||
module.exports = nextConfigIntl;
|
||||
Reference in New Issue
Block a user