Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploying webcontainer apps on Google Cloud #1587

Open
1 task done
manalac-luis opened this issue Nov 6, 2024 · 0 comments
Open
1 task done

Deploying webcontainer apps on Google Cloud #1587

manalac-luis opened this issue Nov 6, 2024 · 0 comments

Comments

@manalac-luis
Copy link

Describe the bug

I ran the stackblitz-webcontainer tutorial-demo locally and it worked:
I then tried to run it on a Google Cloud Compute Instance w/ SSL on port 443, and it could definitely connect.
But the WebContainer itself could not be accessed.
Specifically, I get a security Error
Is there some secret sauce to get webcontainers to work on the cloud.
I've tried dozens of security settings.
Also, I noted that vite.config.js is set to the recommended settings.
import { defineConfig } from 'vite';

export default defineConfig({
server: {
headers: {
'Cross-Origin-Embedder-Policy': 'require-corp',
'Cross-Origin-Opener-Policy': 'same-origin',
},
},

I'm assuming stackblizt webcontainer apps can be deployed via Cloud -- or am I mistaken ?

Link to the blitz that caused the error

https://stackblitz.com/~/github.com/luis-gigabox/stackblitz-webcontainer-api-starter-vok4uv

Steps to reproduce

Install the tutorial demo on GCP and run it.

Expected behavior

Expected that webcontainer apps can be deployed on GCP.

Parity with Local

Screenshots

image

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 91.1]

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant