Skip to content

Updated nginx config to pass sub directories #692

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

Merged
merged 2 commits into from
Jul 7, 2025

Conversation

danditomaso
Copy link
Collaborator

Description

Web Server Configuration:

This pull request includes updates to CI workflows and a configuration change in the web server. The most important changes involve modifying the workflows to better align with their purposes and improving the handling of routes in the web server configuration.

Related Issues

Changes Made

  • Modified the try_files directive to fall back to /index.html for unmatched routes, improving support for single-page applications.
  • Updated CI workflow action name

Testing Done

Checklist

  • Code follows project style guidelines
  • Documentation has been updated or added
  • Tests have been added or updated
  • All i18n translation labels have been added (read
    CONTRIBUTING_I18N_DEVELOPER_GUIDE.md for more details)

@Copilot Copilot AI review requested due to automatic review settings July 6, 2025 19:01
@danditomaso danditomaso changed the title fix: updated nginx config to pass sub directories Updated nginx config to pass sub directories Jul 6, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR improves route handling for single-page applications in the Nginx configuration and aligns CI workflows with their intended triggers and cache scopes.

  • Updated Nginx try_files to serve index.html for subdirectory routes.
  • Renamed the PR workflow and switched its trigger to pull_request.
  • Adjusted Deno cache path and key in the CI workflow to point to the packages/web lock file.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
packages/web/infra/default.conf Updated try_files to fallback to /index.html for unmatched routes
.github/workflows/pr.yml Renamed workflow to “Pull Requests CI” and changed trigger to pull_request
.github/workflows/ci.yml Pointed cache path and hash key to packages/web/deno.lock
Comments suppressed due to low confidence (2)

.github/workflows/pr.yml:3

  • The original push trigger for the main branch was removed, so CI will no longer run on direct pushes to main. Confirm this change is intentional or consider re-adding the push event to maintain builds on main.
on: pull_request

.github/workflows/ci.yml:32

  • There is a trailing whitespace after packages/web/deno.lock which may prevent the cache path from matching correctly. Please remove the extra space.
            packages/web/deno.lock 

@danditomaso danditomaso merged commit 49283da into main Jul 7, 2025
2 checks passed
@danditomaso danditomaso deleted the update-nginx-to-support-csr-router branch July 7, 2025 15:53
Copy link

vercel bot commented Jul 7, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
web-test ✅ Ready (Inspect) Visit Preview Jul 7, 2025 3:54pm

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

Successfully merging this pull request may close these issues.

1 participant