Hi,
I am trying to access the home page with the “http://localhost:3000/” URL
but I am not able to use this URL in the visual editor
I am getting the preview load error
I followed the instructions from docs but that isn’t working
Hey @gamersensei What is the Tech stack you are using? The error might be caused because of your folder structure. Follow our Quickstart Guide to make sure you are routing the pages correctly.
The Quickstart Guide changes the folder structure which can cause an issue when loading the home page. You need to make sure you are following the app structure provided in the guide.
Paste the following code into a new file within the pages directory called [...page].tsx (you must include the brackets and ellipses), making sure to replace YOUR_API_KEY with your Public API Key, which you can find in the Account section of Builder.
Tip: If you don’t have an index route, such as pages/index.tsx , use pages/[[...page.tsx]] with two sets of square brackets. The two square brackets means that Builder handles the app’s home page.
The single set of square brackets, in this tutorial, assumes that you are keeping your home page.