Refactor Dockerfile for improved build process; switch to node:20 base image, add build step, and configure volume and port exposure. Update package dependencies for bcrypt and bcryptjs, remove unused files, and enhance README with clearer project structure and setup instructions.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { NextResponse } from 'next/server';
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import bcrypt from 'bcrypt';
|
||||
import bcrypt from 'bcryptjs';
|
||||
|
||||
const adminPath = path.join(process.cwd(), 'posts', 'admin.json');
|
||||
const tempPath = path.join(process.cwd(), 'posts', 'admin.json.tmp');
|
||||
|
||||
@@ -68,17 +68,13 @@ export default function RootLayout({
|
||||
</div>
|
||||
</header>
|
||||
{children}
|
||||
<footer className="bg-gray-100 p-4">
|
||||
<footer className="bg-gray-100 p-2">
|
||||
<div className="container mx-auto flex flex-col md:flex-row justify-between items-center">
|
||||
<p>
|
||||
<span>
|
||||
© {new Date().getFullYear()} {blogOwner}
|
||||
</span>
|
||||
<span className="text-gray-500 text-right" style={{ fontSize: '12px' }}>
|
||||
Du bist auf dem Development-Server.
|
||||
Er ist nicht stabil und kann sich jederzeit ändern.
|
||||
</span>
|
||||
</p>
|
||||
<div className="text-center">
|
||||
<span className="text-gray-500" style={{ fontSize: '12px' }}>
|
||||
© {new Date().getFullYear()} {blogOwner}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user