Skip to content

Commit 8a3e67a

Browse files
committed
📜 Add directions on where to save custom js.
1 parent 59ac8bb commit 8a3e67a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎advanced/custom/js.mdx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Custom JS allows you to add custom executable code globally. It is the equivalen
1111

1212
## Adding script.js
1313

14+
To add custom JavaScript functionality globally, you need to create a `script.js` file at the root of your project. In case of a monorepo, this file should be at the same level as your `mint.json` file.
15+
1416
For example, you can add the following `script.js` file to enable [Google Analytics](https://marketingplatform.google.com/about/analytics) across the entire documentation.
1517

1618
```js

0 commit comments

Comments
 (0)