Next js Dynamic Import for Multi tanant application #90043
Unanswered
Ramprasadya
asked this question in
Help
Replies: 1 comment
-
|
Do you mean like, you wanna check if the config does indeed include the ContactUs, otherwise render NotFound? I guess dynamic import via import React, { useEffect, useLayoutEffect } from 'react'
import { hasRequestAnimationFrame, isLegacyDeno, isWindowDefined } from './helper'
export const IS_REACT_LEGACY = !React.useId |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I am create a multi tanant next js application that help me to create multiple site into one single app but different builds file
now i just wanted to know - if under the folder router i have imported a component and under the fist site it working but for second site its not becouse in second site that component not exist .
So i am searching how can i show 404 page insted of throwing error
here is my code
this is for first site
getting error
Module '"@/config/site"' has no exported member 'ConatctUS'. Did you mean to use 'import ConatctUS from "@/config/site"' instead?
so please help me to fix this- your one reply can help me alot
Additional information
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions