.dynamic is a special folder in that Site.js knows to look for it in your project. If it finds it, it knows to run its contents as a dynamic route instead of serving it as static content.

If the code here looks cryptic to you, see the longer version .

Serve your site.

site ..

Tip You don’t have to be in the folder you want Site.js to serve, as in the previous examples. As shown here, you can specify the folder as an argument to the site command. In this case, we want to serve the whole site from the parent folder, not just the .dynamic folder.)

Hit https://localhost and refresh to see the counter update.