
Beag.io will show you a special code to copy.
Make a new file called beag.js on your computer (you can use a simple text app like Notepad).
Copy the code from Beag.io and paste it into beag.js, then save the file.
Using Cursor? Here’s an easier way!
1. Create beag.js file in public/js directory. Don’t need to insert anything in the file.
2. Copy this code and paste it before the </head> tag on every page. Don’t convert it to <Script>:<script type="module" src="js/beag.js" defer></script>
Tip: This script tag is like a magic key—it locks your app so only the right people can get in!