Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 Error When Deployed to Azure Static Web App #165

Open
mildronize opened this issue Aug 11, 2024 · 1 comment
Open

404 Error When Deployed to Azure Static Web App #165

mildronize opened this issue Aug 11, 2024 · 1 comment

Comments

@mildronize
Copy link
Contributor

mildronize commented Aug 11, 2024

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
Copy link
Contributor

lfantone commented Aug 30, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants