-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
The JavaScript code in
environment.prod.tsuses runtime browser properties (window.location) which may not work correctly if this file is used during build time. Verify that this configuration is only loaded at runtime in the browser, not during SSR or build processes.
Originally posted by @Copilot in #2
@milanmajchrak tohle neco vazne dela, nebo je to pozustatek nejakyho pokusu?
environment.prod.ts: |-
export const environment = {
production: true,
// Use the runtime browser host/port so client requests do not hardcode container ports
rest: { ssl: true, host: window.location.hostname, port: window.location.port || (window.location.protocol === 'https:' ? 443 : 80), nameSpace: '/server' },
ui: { ssl: true, host: window.location.hostname, port: window.location.port || (window.location.protocol === 'https:' ? 443 : 80), nameSpace: '/' }
};
a pokud to neco dela, jak to funguje?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels