Reviewed-on: #433 Co-authored-by: miteruzo <miteruzo@naver.com>
このコミットはプルリクエスト #433 でマージされました。
このコミットが含まれているのは:
@@ -0,0 +1,18 @@
|
||||
export type RenderContext = {
|
||||
pathname: string
|
||||
origin: string
|
||||
apiBaseURL?: string
|
||||
cookie?: string
|
||||
setCookies?: string[]
|
||||
csrf?: { token?: string; pending?: Promise<string> }
|
||||
forwardedFor?: string
|
||||
status?: number }
|
||||
|
||||
|
||||
// The server build replaces this module with the AsyncLocalStorage implementation.
|
||||
export const currentRenderContext = (): RenderContext | undefined => {
|
||||
if (typeof window === 'undefined')
|
||||
return undefined
|
||||
return { pathname: window.location.pathname,
|
||||
origin: window.location.origin }
|
||||
}
|
||||
新しいイシューから参照
ユーザーをブロックする