scandinavianairlines / remix-azure-functions

A Remix.run adapter for Azure Functions and Azure Static Web Apps
https://www.npmjs.com/package/@scandinavianairlines/remix-azure-functions
MIT License
28 stars 2 forks source link

404 Error When Deployed to Azure Static Web App #165

Open mildronize opened 3 months ago

mildronize commented 3 months ago

After fixing the issue in the Remix for Azure Functions example in this PR, I encountered a new problem. When I deployed to Azure Static Web App, I received a 404 error on the root path /.

Steps to Reproduce

  1. Copy the project from the example: azure-staticwebapp.
  2. Deploy using swa deploy as specified in the package.json file.

Additional Information

I have attached the zip files of the built project before deploying to Azure Static Web App

Could you help resolve this issue?

Thank you!

lfantone commented 2 months ago

Hey @mildronize, thanks for the PR!

Do you see any error on the logs for the deployed function?

By checking the output from the api.zip file looks like it's missing the dependencies, is I'm not mistaken there should be a node_modules folder inside the zip. Otherwise the Functions won't start