feat: update API URL to dota-zombie-invasion.achmad.dev

Point game client (server_config.lua) to the new domain with HTTPS
and enable secure flag on the admin session cookie for HTTPS.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
achmad
2026-05-29 17:31:35 +07:00
parent 2a3a56456c
commit 49b790349f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ export async function POST(request: NextRequest) {
} }
const response = NextResponse.json({ success: true }); const response = NextResponse.json({ success: true });
response.cookies.set('admin_session', 'authenticated', { response.cookies.set('admin_session', 'authenticated', {
httpOnly: true, secure: false, sameSite: 'lax', path: '/admin', maxAge: 86400, httpOnly: true, secure: true, sameSite: 'lax', path: '/admin', maxAge: 86400,
}); });
return response; return response;
} }
+1 -1
View File
@@ -1,4 +1,4 @@
--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]] --[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]
local ____exports = {} local ____exports = {}
____exports.SERVER_CONFIG = {API_URL = "http://82.146.52.69:3000/api", NETWORK_TIMEOUT = 10, ABSOLUTE_TIMEOUT = 10000} ____exports.SERVER_CONFIG = {API_URL = "https://dota-zombie-invasion.achmad.dev/api", NETWORK_TIMEOUT = 10, ABSOLUTE_TIMEOUT = 10000}
return ____exports return ____exports