Replies: 1 comment
-
Okey, found the solution for those who are interested: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello guys,
![image](https://private-user-images.githubusercontent.com/12223900/288064109-0eb698f9-ac83-49b0-8af9-c64fff305915.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjExNDEzOTIsIm5iZiI6MTcyMTE0MTA5MiwicGF0aCI6Ii8xMjIyMzkwMC8yODgwNjQxMDktMGViNjk4ZjktYWM4My00OWIwLThhZjktYzY0ZmZmMzA1OTE1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE2VDE0NDQ1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk2MGVhZDFiZGQyOGU3YmY2YmRjMTRjMGFjMjJlYzY3OTgyMGQyMzUyZTI2OTRmMDc5MGMxMWQ1MzFkMGMzYzEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ruaw0-7R0YnTHqrzXIzP0qJmldhePVISHdh3daGpmaQ)
I am building a site builder (https://notionfol.io) and used vercel platforms as a starter.
I changed the architecture to become /[domain]/[template], see image below
So my question is anyone have an idea how can i make a preview for the site while customizing it in /app.
My thoughts:
I wanted to make a scalable solution as i can i have 100 templates in the future and re exporting all the components and rendering them in preview will not be a good solution as i will loose the folder based routing and will have to handle that by myself, i also thought about making an iframe (and maybe pass the json for template as query params or smthng like that)
Illustration (i want to make a preview in the right side)
![image](https://private-user-images.githubusercontent.com/12223900/288066356-adbac67b-f909-4033-bbd7-06cb32526015.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjExNDEzOTIsIm5iZiI6MTcyMTE0MTA5MiwicGF0aCI6Ii8xMjIyMzkwMC8yODgwNjYzNTYtYWRiYWM2N2ItZjkwOS00MDMzLWJiZDctMDZjYjMyNTI2MDE1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE2VDE0NDQ1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE1MzU5N2NiMmZlNjQ2NzM5NjhhOGUxNDE3NTY4YTJjZTg5OGYyNmVkMDRkNTg4MTI1MTM2MjZiN2Q2M2UwMWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.tZ1eKrZthsS2uzK3kfqELZKYYJfMVAkLxy1KzdcJvow)
Any thoughts? thanks 😳
Beta Was this translation helpful? Give feedback.
All reactions