-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: la configuration applicative est une constante (#1184)
- Loading branch information
1 parent
f59bc8e
commit b31273b
Showing
17 changed files
with
96 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// variables defined statically via vite.config.js | ||
export const applicationConfig = { | ||
backendEndpoint: __BACKEND_ENDPOINT__, | ||
graphqlEndpoint: __GRAPHQL_ENDPOINT__, | ||
exportEndpoint: __EXPORT_ENDPOINT__, | ||
processEndpoint: __PROCESS_ENDPOINT__, | ||
pandocExportEndpoint: __PANDOC_EXPORT_ENDPOINT__, | ||
humanIdRegisterEndpoint: __HUMANID_REGISTER_ENDPOINT__, | ||
websocketEndpoint: toWebsocketEndpoint(__BACKEND_ENDPOINT__), | ||
} | ||
|
||
function toWebsocketEndpoint(endpoint) { | ||
if (endpoint) { | ||
const endpointUrl = new URL(endpoint) | ||
const protocol = endpointUrl.protocol | ||
return `${protocol === 'https:' ? 'wss' : 'ws'}://${endpointUrl.hostname}:${ | ||
endpointUrl.port | ||
}/ws` | ||
} | ||
return `ws://127.0.0.1:3030/ws` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.