You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We recently started updating our arc projects to use the macro-http-api macro which pulls in the proxy function from this repo and uses it to serve static assets. Our first upgrades we're successful, but later upgrades would not load static assets due to a change in this repo. It would fail with a "Key not Found" error.
After a deep dive through working / non working lambdas we found that a line similar to if (Key.startsWith('_static/')) Key = Key.replace('_static/', '') had been removed from the code causing the keys from the /public folder to be malformed.
Steps to reproduce
Steps to reproduce the behavior:
Create a new .arc project.
Create a static asset at /public/anything.css
Enable fingerprinting (though I don't believe this is required to see the bug work).
Install and enable the macro-http-api.
Utilize the asset in a view using the arc.static helper.
Verify asset loads and works locally.
Deploy to AWS.
You should see that the static file tries to load from /_static/anything.css - but will 404 with a "Key not found" error.
Expected behavior
I expect the asset to load properly.
Screenshots
NA
Additional context
None.
The text was updated successfully, but these errors were encountered:
Describe the issue
We recently started updating our arc projects to use the
macro-http-api
macro which pulls in the proxy function from this repo and uses it to serve static assets. Our first upgrades we're successful, but later upgrades would not load static assets due to a change in this repo. It would fail with a "Key not Found" error.After a deep dive through working / non working lambdas we found that a line similar to
if (Key.startsWith('_static/')) Key = Key.replace('_static/', '')
had been removed from the code causing the keys from the/public
folder to be malformed.Steps to reproduce
Steps to reproduce the behavior:
.arc
project./public/anything.css
macro-http-api
.arc.static
helper./_static/anything.css
- but will 404 with a "Key not found" error.Expected behavior
I expect the asset to load properly.
Screenshots
NA
Additional context
None.
The text was updated successfully, but these errors were encountered: