Next.js Discord

Discord Forum

How does Next.js prevent client accessing non-permitted JSX files?

Unanswered
Milkfish posted this in #help-forum
Open in Discord
MilkfishOP
Let's say normally in the code there is an App.jsx file and in it, it imports App2.jsx file. How does Next.js know that you imported App2.jsx before sending it to client? Does it know it or does client just run it and see what it imports? Because if that's the case client could ask for let's say App3.jsx file which wasn't imported from the App.jsx file.

0 Replies