Closed derekduoba closed 8 years ago
Yeah, it should ideally not do this, but its just serving the template directory as a static dir through express, so it is relying on order of operations for URLs. I haven't looked into a resolve for this yet other than make sure you're not referencing assets that don't exist :/
Earlier today, I found an issue where the NodeSquarespace server will crash if a file within the "assets" directory does not exist (or, in my case, is improperly named). I attempted to add the following into the
of site.region:Unfortunately, I spelled it incorrectly:
The server crashed almost immediately upon issuing "sqs server --reload." Once I commented out the offending , the server was able to start without issue.
Next, I attempted to access the asset in question at the incorrectly-spelled URL:
http://localhost:5050/assets/**phtotoswipe**/default-skin.css
This caused the server to crash and throw the same error as before. Relevant stack trace below: