-
Notifications
You must be signed in to change notification settings - Fork 2.2k
refactor(file-structure): cleaned up sim file structure #1486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
820517b
to
539744a
Compare
f0c20a9
to
010753d
Compare
if (process.env.NEXT_RUNTIME === 'edge') { | ||
console.log('[Main Instrumentation] Loading Edge Runtime instrumentation...') | ||
const edgeInstrumentation = await import('./instrumentation-edge') | ||
const edgeInstrumentation = await import('./lib/instrumentation/edge') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@emir-karabeg this might break because instrumentation runs before /lib
import alias is available from tsconfig
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these file names have to stay the way they were before, and can't be in lib/
https://nextjs.org/docs/app/guides/instrumentation
Summary
Cleaned up Sim file structure to follow best-practices with NextJS repositories. I moved files to lib and adjusted page/component files to align best-practices.
Type of Change
Testing
No functionality changes.
Checklist