Next.js Discord

Discord Forum

Inline script tag with src but with a TS File?

Unanswered
Cyanide posted this in #help-forum
Open in Discord
Hi! I want to import a .ts file as inline script tag in head. How can I do this?

1 Reply

My main aim is to execute a script sync before a component is rednered in natural flow without using effects which cause issue with SSR.