feat: Initialize Angular SSR application with core pages, components, and server setup.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
export const hostname = window.location.hostname;
|
||||
// SSR-safe: check if window exists (it doesn't on server-side)
|
||||
const hostname = typeof window !== 'undefined' ? window.location.hostname : 'localhost';
|
||||
export const environment_base = {
|
||||
// apiBaseUrl: 'http://localhost:3000',
|
||||
apiBaseUrl: `http://${hostname}:4200`,
|
||||
|
||||
Reference in New Issue
Block a user