Commit Graph

25 Commits

Author SHA1 Message Date
g
2477e9bb0f fix docker? 2026-01-11 07:48:01 +00:00
g
0fba981bca optimization 2026-01-11 07:35:52 +00:00
g
c31604d29a Enable dynamic rendering and update Next.js config
Added 'force-dynamic' export to admin orders and status pages for dynamic rendering. Updated next.config.mjs to modularize imports for better tree-shaking and switched to Turbopack for optimal bundle sizes. Upgraded Next.js and related dependencies in package.json and package-lock.json.
2025-12-31 07:05:26 +00:00
g
18ac2224ca Improve user search and optimize Next.js config
User search in the admin users page now queries the backend instead of filtering on the client, and resets pagination on search. Next.js config adds production compression, removes console logs in production (except error/warn), disables the poweredByHeader, and introduces custom webpack code splitting for better bundle optimization. Updated tsconfig target to ES2020.
2025-12-31 06:46:06 +00:00
NotII
5ce716d2ab Refactor docs structure and update API env config
Moved documentation files into a new docs/ directory and added a documentation index (docs/README.md). Updated the main README with improved project and documentation details. Set explicit API environment variables in Dockerfile for production. Enhanced next.config.mjs with improved API_BASE_URL handling and logging for better deployment clarity.
2025-09-01 16:48:42 +01:00
NotII
57c2fbdf50 Add CapRover deployment fix and improve env var handling
Added CAPROVER-DEPLOYMENT-FIX.md with instructions for required environment variables to prevent 500 errors. Improved validation and fallback logic for SERVER_API_URL and API_BASE_URL in server-api.ts, route.ts, and next.config.mjs to handle missing or invalid values gracefully and log warnings instead of crashing.
2025-09-01 16:31:12 +01:00
NotII
29ec1be68c Refactor API URLs and add environment config example
Replaces hardcoded production API URLs with localhost defaults for local development in both server and client code. Updates Dockerfile to require API URLs via deployment environment variables. Improves ChatTable to use a batch endpoint for chats and unread counts, with backward compatibility. Adds an env.example file to document required environment variables. Updates next.config.mjs to use environment variables for backend API rewrites and image domains.
2025-09-01 15:35:10 +01:00
NotII
0fa33df2ad hmm 2025-07-17 16:07:07 +01:00
NotII
308a816736 uwu 2025-05-19 17:51:06 +01:00
NotII
054ea4802d fk 2025-04-08 02:10:47 +01:00
NotII
8da4d0085e revert 2025-04-06 16:23:02 +01:00
NotII
17e6e7d677 Update next.config.mjs 2025-04-06 16:12:22 +01:00
NotII
3e73e3b74e Merge main into upgrade-nextjs with resolved conflicts 2025-03-24 15:12:47 +00:00
NotII
d3c61ef1de erm what the sigma 2025-03-24 13:46:53 +00:00
NotII
f5b5608f9d erm what the sigma 2025-03-24 13:44:44 +00:00
NotII
edcd0c1e06 erm what the sigma 2025-03-24 13:43:42 +00:00
NotII
5a2a9d59b7 Update next.config.mjs 2025-03-24 01:54:26 +00:00
NotII
08fb0c4470 fuck me 2025-03-23 22:59:04 +00:00
NotII
d696acb0fc Update next.config.mjs 2025-03-23 22:52:56 +00:00
NotII
dc51901c5c update config 2025-03-23 21:00:49 +00:00
NotII
b06e2ca0b1 Update next.config.mjs 2025-03-21 02:00:17 +01:00
NotII
a1630af807 updte 2025-03-17 20:21:10 +01:00
NotII
87a58a6736 fix alot of things 2025-03-14 16:48:08 +00:00
NotII
20d5559832 other 2025-03-10 17:39:37 +00:00
g
6c4f3f0866 balls 2025-02-07 04:43:47 +00:00