mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-24 19:39:11 +00:00
expose public URI routes in ui
This commit is contained in:
parent
9ba1334e2b
commit
4ef4badec3
3 changed files with 16 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
module.exports = {
|
||||
// target: 'serverless',
|
||||
publicRuntimeConfig: {
|
||||
apiPublicURI: process.env.API_PUBLIC_URI,
|
||||
uiPublicURI: process.env.UI_PUBLIC_URI,
|
||||
},
|
||||
};
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
import getConfig from 'next/config';
|
||||
import * as React from 'react';
|
||||
import { AuthLogin } from 'roleypoly/design-system/templates/auth-login';
|
||||
|
||||
const { publicRuntimeConfig } = getConfig();
|
||||
|
||||
const loginPage = () => {
|
||||
const onSendSecretCode = (code: string) => {
|
||||
console.log(code);
|
||||
|
@ -8,7 +11,7 @@ const loginPage = () => {
|
|||
return (
|
||||
<AuthLogin
|
||||
onSendSecretCode={onSendSecretCode}
|
||||
discordOAuthLink="http://localhost:6600/login-bounce"
|
||||
discordOAuthLink={`${publicRuntimeConfig.apiPublicURI}/login-bounce`}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
|
|
@ -28,8 +28,16 @@ resource "google_cloud_run_service" "web" {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
metadata {
|
||||
annotations = {
|
||||
"autoscaling.knative.dev/maxScale" = "10"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
traffic {
|
||||
percent = 100
|
||||
latest_revision = true
|
||||
|
|
Loading…
Add table
Reference in a new issue