[dyad] wrote 3 file(s)

This commit is contained in:
Michael committed 2025-11-06 13:48:49 +01:00
1 parent b8a19a25bf
commit 3f703fbf11
3 files changed
+21 -21

No files matched your search

+3 -3
View File
@@ -5,14 +5,14 @@ services:
build: .
container_name: notes-todo-app
ports:
- "3000:3000"
- "2222:2222"
volumes:
- ./data:/app/data
- ./public/uploads:/app/public/uploads
environment:
- NODE_ENV=production
- JWT_SECRET=changeme_in_production
- PORT=3000
- PORT=2222
restart: unless-stopped
networks:
- nginx_default
@@ -23,7 +23,7 @@ networks:
# Nginx configuration example:
# location /notes/ {
# proxy_pass http://notes-todo-app:3000/;
# proxy_pass http://notes-todo-app:2222/;
# proxy_http_version 1.1;
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection 'upgrade';
+1 -1
View File
@@ -33,7 +33,7 @@ app.use((err, req, res, next) => {
});
// Start server
const PORT = process.env.PORT || 3000;
const PORT = process.env.PORT || 2222;
app.listen(PORT, () => {
logger.info(`Server running on port ${PORT}`);
});
+17 -17
View File
@@ -1,17 +1,17 @@
import { defineConfig } from "vite";
import dyadComponentTagger from "@dyad-sh/react-vite-component-tagger";
import react from "@vitejs/plugin-react-swc";
import path from "path";
export default defineConfig(() => ({
server: {
host: "::",
port: 8080,
},
plugins: [dyadComponentTagger(), react()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
}));
import { defineConfig } from "vite";
import dyadComponentTagger from "@dyad-sh/react-vite-component-tagger";
import react from "@vitejs/plugin-react-swc";
import path from "path";
export default defineConfig(() => ({
server: {
host: "::",
port: 2222,
},
plugins: [dyadComponentTagger(), react()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
}));