Prepare repository for Amp orbs (#18)

* Prepare repository for Amp orbs

Amp-Thread-ID: https://ampcode.com/threads/T-019f8509-6815-71df-b137-f40075cd06f8

Co-authored-by: Akash Shakdwipeea <ashakdwipeea@gmail.com>

* Declare Amp preview service and portal

Amp-Thread-ID: https://ampcode.com/threads/T-019f8509-6815-71df-b137-f40075cd06f8

Co-authored-by: Akash Shakdwipeea <ashakdwipeea@gmail.com>

* Allow E2B portal hosts in Vite preview

Amp-Thread-ID: https://ampcode.com/threads/T-019f8509-6815-71df-b137-f40075cd06f8

Co-authored-by: Akash Shakdwipeea <ashakdwipeea@gmail.com>

* Enable WebGPU for agent-browser

Amp-Thread-ID: https://ampcode.com/threads/T-019f8509-6815-71df-b137-f40075cd06f8

Co-authored-by: Akash Shakdwipeea <ashakdwipeea@gmail.com>

* Install virtual display for WebGPU captures

Amp-Thread-ID: https://ampcode.com/threads/T-019f8509-6815-71df-b137-f40075cd06f8

Co-authored-by: Akash Shakdwipeea <ashakdwipeea@gmail.com>

* Revert Amp orb setup pending review

Amp-Thread-ID: https://ampcode.com/threads/T-019f8509-6815-71df-b137-f40075cd06f8

Co-authored-by: Akash Shakdwipeea <ashakdwipeea@gmail.com>

* Prepare repository for Amp orbs

Amp-Thread-ID: https://ampcode.com/threads/T-019f8509-6815-71df-b137-f40075cd06f8

Co-authored-by: Akash Shakdwipeea <ashakdwipeea@gmail.com>

* Declare Amp preview service and portal

Amp-Thread-ID: https://ampcode.com/threads/T-019f8509-6815-71df-b137-f40075cd06f8

Co-authored-by: Akash Shakdwipeea <ashakdwipeea@gmail.com>

* Allow E2B portal hosts in Vite preview

Amp-Thread-ID: https://ampcode.com/threads/T-019f8509-6815-71df-b137-f40075cd06f8

Co-authored-by: Akash Shakdwipeea <ashakdwipeea@gmail.com>

* Enable WebGPU for agent-browser

Amp-Thread-ID: https://ampcode.com/threads/T-019f8509-6815-71df-b137-f40075cd06f8

Co-authored-by: Akash Shakdwipeea <ashakdwipeea@gmail.com>

* Install virtual display for WebGPU captures

Amp-Thread-ID: https://ampcode.com/threads/T-019f8509-6815-71df-b137-f40075cd06f8

Co-authored-by: Akash Shakdwipeea <ashakdwipeea@gmail.com>

* Address orb portal review feedback

Amp-Thread-ID: https://ampcode.com/threads/T-019f8509-6815-71df-b137-f40075cd06f8

Co-authored-by: Akash Shakdwipeea <ashakdwipeea@gmail.com>

---------

Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
Akash Shakdwipeea
2026-07-21 22:58:59 +05:30
committed by GitHub
co-authored by Amp
parent 2a49f07d68
commit a4414cc735
6 changed files with 156 additions and 0 deletions
+4
View File
@@ -7,6 +7,9 @@ import copy from "rollup-plugin-copy";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const portalHost = process.env.PUBLIC_URL
? new URL(process.env.PUBLIC_URL).hostname
: undefined;
export default defineConfig({
build: {
@@ -54,6 +57,7 @@ export default defineConfig({
},
preview: {
port: 8080,
allowedHosts: portalHost ? [portalHost, ".e2b.app"] : [],
headers: {
"Cross-Origin-Embedder-Policy": "require-corp",
"Cross-Origin-Opener-Policy": "same-origin",