mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
fixed canonical URL
This commit is contained in:
parent
ec5e796f32
commit
7fbbab363d
3 changed files with 54 additions and 37 deletions
|
@ -1,7 +1,10 @@
|
|||
export const CONFIG = {
|
||||
apiHost: process.env.REACT_APP_API_HOST || process.env.NEXT_PUBLIC_API_HOST || '',
|
||||
remoteCurrent:
|
||||
process.env.REACT_APP_REMOTE_CURRENT || process.env.NEXT_PUBLIC_REMOTE_CURRENT || '',
|
||||
// https://vault48.org/ by default
|
||||
publicHost: process.env.NEXT_PUBLIC_PUBLIC_HOST,
|
||||
// backend endpoint
|
||||
apiHost: process.env.NEXT_PUBLIC_API_HOST || '',
|
||||
// image storage endpoint (sames as backend, but with /static usualy)
|
||||
remoteCurrent: process.env.NEXT_PUBLIC_REMOTE_CURRENT || '',
|
||||
// transitional prop, marks migration to nextjs
|
||||
isNextEnvironment: !!process.env.NEXT_PUBLIC_REMOTE_CURRENT || typeof window === 'undefined',
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue