Skip to content

How is GAS live-reload implemented? #182

@eakl

Description

@eakl

Thank you for this boilerplate. Looking at your code, I have leant a lot 🙏

I am trying to create a simple version of this boilerplate with Svelte and vite/esbuild. One part I don't quite understand is how you managed to implement the live reload between your local dev server and Google's server.

I have created the minimal dev app wrapping an iframe that points to https://localhost:5173

<iframe src='https://localhost:5173' />

And then run the dev server with vite dev on HTTPS
Alternatively (because vite serves your app without writing anything to disk in dev mode) I have tried to build the app and serve the /build folder.

None of what I tried works. I don't see anything inside the iframe.

How is the dev app on Google server supposed to resolve https://localhost:5173 to your local dev server?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions