File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
_authenticated/_dashboard/dashboard Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ function RouteComponent() {
142142 </ Dialog >
143143 </ div >
144144 { newToken && (
145- < div className = "space-y-2" >
145+ < div className = "space-y-2 bg-blue-50 p-4 rounded-lg border border-blue-200 " >
146146 < p className = "text-sm font-medium" > New Token (copy this now, it won't be shown again):</ p >
147147 < div className = "flex space-x-2" >
148148 < Input value = { newToken } readOnly />
Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ import { signOut } from '../authkit/serverFunctions';
33
44export const Route = createFileRoute ( '/logout' ) ( {
55 preload : false ,
6- loader : async ( ) => {
7- await signOut ( { data : "/" } ) ;
6+ loader : async ( { context} ) => {
7+ const redirectUrl = context . publicServerConfig . PUBLIC_URL
8+ await signOut ( { data : redirectUrl } ) ;
89 } ,
910} ) ;
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ async function handler({ request }) {
1919 // important: we need to set these to allow the statesman backend to return the correct URL to opentofu or terraform clients
2020 const outgoingHeaders = new Headers ( request . headers ) ;
2121 const originalHost = outgoingHeaders . get ( 'host' ) ?? '' ;
22- console . log ( 'originalHost' , originalHost ) ;
2322 if ( originalHost ) outgoingHeaders . set ( 'x-forwarded-host' , originalHost ) ;
2423 outgoingHeaders . set ( 'x-forwarded-proto' , url . protocol . replace ( ':' , '' ) ) ;
2524 if ( url . port ) outgoingHeaders . set ( 'x-forwarded-port' , url . port ) ;
You can’t perform that action at this time.
0 commit comments