feat: sign in sign up with all views

This commit is contained in:
Pc
2025-12-30 18:32:13 +01:00
parent a30a6168ba
commit bca5fc03a8
31 changed files with 5568 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
export default defineConfig({
plugins: [
react(),
tailwindcss(),
],
server: {
port: 6568,
proxy: {
'/api': {
target: 'https://ktty.is',
changeOrigin: true,
secure: false,
// Dodatkowe nagłówki pomagają oszukać zabezpieczenia serwera (np. Cloudflare)
headers: {
'Origin': 'https://ktty.is',
'Referer': 'https://ktty.is/'
},
configure: (proxy) => {
proxy.on('error', (err) => {
console.log('[Proxy Error]:', err.message);
});
proxy.on('proxyReq', (_, req) => {
console.log(`[Proxy] Wysyłam do zdalnego serwera: ${req.method} ${req.url}`);
});
proxy.on('proxyRes', (proxyRes, req) => {
console.log(`[Proxy] Odpowiedź z ktty.is: ${proxyRes.statusCode} ${req.url}`);
});
},
}
}
},
})