Working React 19 before Compiler integration

🚀 Phase 2 Complete - React 19 Foundation
- React upgraded: 18.2.0 → 19.0.0 
- MUI upgraded: 5 → 6 
- React Router upgraded: 6 → 7 
- All packages updated and working 
- Production build: 995KB bundle 
- All containers working 

Ready for Phase 3: React Compiler integration

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Eric Gullickson
2025-08-23 16:46:31 -05:00
parent 1288a4fb7d
commit 698db0ed4c
8 changed files with 64 additions and 8 deletions

View File

@@ -37,8 +37,8 @@ RUN touch /var/run/nginx.pid && \
USER frontend
# Expose port
EXPOSE 3000
# Expose ports
EXPOSE 3000 3443
# Start nginx
CMD ["nginx", "-g", "daemon off;"]

View File

@@ -9,9 +9,35 @@ http {
sendfile on;
keepalive_timeout 65;
# HTTP server - redirect to HTTPS
server {
listen 3000;
server_name localhost;
server_name motovaultpro.com *.motovaultpro.com localhost;
# Redirect all HTTP traffic to HTTPS
return 301 https://$host:3443$request_uri;
}
# HTTPS server
server {
listen 3443 ssl http2;
server_name motovaultpro.com *.motovaultpro.com localhost;
# SSL certificate configuration
ssl_certificate /etc/nginx/certs/motovaultpro.com.crt;
ssl_certificate_key /etc/nginx/certs/motovaultpro.com.key;
# Modern SSL configuration
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384;
ssl_prefer_server_ciphers off;
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
# Security headers
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
add_header X-Frame-Options DENY always;
add_header X-Content-Type-Options nosniff always;
root /usr/share/nginx/html;
index index.html;
@@ -28,6 +54,7 @@ http {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port $server_port;
}
# Enable gzip compression

View File

@@ -18,6 +18,7 @@ export const Auth0Provider: React.FC<Auth0ProviderProps> = ({ children }) => {
const clientId = import.meta.env.VITE_AUTH0_CLIENT_ID;
const audience = import.meta.env.VITE_AUTH0_AUDIENCE;
const onRedirectCallback = (appState?: { returnTo?: string }) => {
navigate(appState?.returnTo || '/dashboard');
};

View File

@@ -12,5 +12,10 @@ export default defineConfig({
server: {
port: 3000,
host: '0.0.0.0', // Allow external connections for container
allowedHosts: [
'localhost',
'motovaultpro.com',
'.motovaultpro.com'
],
},
});