awslabs / awslabs/agentcore-samples

06-workshops - [Bug] 07-Temporal Policies: Blank page — Vite assets fail to load (no base path set)

Open
#2,018 0 comments 0 reactions 1 assignee Claimed by @akshseh View on GitHub
06-workshops bug
Dominant language
Python
Stars
3.4k
Forks
1.3k
Avg merge
1d 22h
Merged PRs (30d)
30

Description

**In which component is this bug present?**

- [ ] 01-AgentCore-runtime
- [x] 02-AgentCore-gateway
- [ ] 03-AgentCore-identity
- [ ] 04-AgentCore-memory
- [ ] 05-AgentCore-tools
- [ ] 06-AgentCore-observability
- [ ] 07-AgentCore-E2E

**Bug Description**

In the Temporal Policies banking assistant, HTML loads but the page is blank. JS/CSS return 404.

Cause: Vite generates absolute asset paths in HTML:
```html

```

Browser at `https://domain/app/5173/` resolves these as `https://domain/@vite/client` — without the `/app/5173/` prefix, nginx doesn't proxy them to port 5173. Assets never reach Vite.

**Suggested Fix**
Set `base: "./"` in `vite.config.ts` so asset paths become relative (e.g. `./assets/index-xxx.js`), which the browser resolves relative to the page URL `/app/5173/`, correctly routing through the proxy.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.