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
Hi, I'm having an issue getting a rewrite rule to successfully serve files after setting a new root directory as a SPA. Basically, my folder directory is similar to this:
Project
app
index.html
node_modules
bower_components
Essentially, I'm launching the ws from the project root, setting app as the new root directory, setting index.html as the starting point for the SPA flag, and then trying to serve the bower_components folder to the app.
This is my launch command: ws -d app --spa index.html -r '/bower_components/* -> ../bower_components/$1'
I'm getting a 403 error in terminal whenever the server tries to access the files. So I believe it's finding the folder, but can't serve it up. I've tried modifying the folder permissions with no success so far. Is there a way to do this currently? I might just be missing something completely. Any assistance would be greatly appreciated! Thanks!
The text was updated successfully, but these errors were encountered:
Hi! Files outside of the root directory will not be served (for security reasons). If you set --directory to /app, then only files inside /app can be served. A rewrite can not help you here.
Your bower_components folder needs to be inside the root folder, so either serve the root project folder or move bower_components into /app
Hi, I'm having an issue getting a rewrite rule to successfully serve files after setting a new root directory as a SPA. Basically, my folder directory is similar to this:
Essentially, I'm launching the ws from the project root, setting app as the new root directory, setting index.html as the starting point for the SPA flag, and then trying to serve the bower_components folder to the app.
This is my launch command:
ws -d app --spa index.html -r '/bower_components/* -> ../bower_components/$1'
I'm getting a 403 error in terminal whenever the server tries to access the files. So I believe it's finding the folder, but can't serve it up. I've tried modifying the folder permissions with no success so far. Is there a way to do this currently? I might just be missing something completely. Any assistance would be greatly appreciated! Thanks!
The text was updated successfully, but these errors were encountered: