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

refactor(root): Rename from web.novu.co to dashboard.novu.co #5876

Merged
merged 4 commits into from
Jul 2, 2024

Conversation

rifont
Copy link
Collaborator

@rifont rifont commented Jun 29, 2024

What changed? Why was the change needed?

  • Add Netlify 301 redirect for transparent redirect on web server for all environments
  • Replace all occurrences of web.novu.co with dashboard.novu.co

Deployment sequence (per <environment>):

  1. Merge this Cloud-Infra PR first, which modifies CORS config.
  2. Apply the changes from Cloud Infra to the relevant <environment>
  3. Deploy modified ECS task definitions to API & Worker
  4. After the ECS rolling restart concludes, merge this PR, then immediately trigger a new build from Netlify for the relevant <environment>. There is likely to be a small time window where access to web.novu.co results in CORS errors without due to the redirect not taking place, corresponding to the delta between when CORS changes from #2 above are deployed and the Netlify redirects take effect. This delta should be less than 10 minutes, which has the effect of downtime for new logins to the Web interface.

Screenshots

Expand for optional sections

Related enterprise PR

Special notes for your reviewer

@rifont rifont requested a review from a team June 29, 2024 14:50
@rifont rifont requested a review from a team as a code owner June 29, 2024 14:50
@rifont rifont requested review from scopsy and AliaksandrRyzhou and removed request for a team June 29, 2024 14:50
Copy link

netlify bot commented Jun 29, 2024

Deploy Preview for dev-web-novu ready!

Name Link
🔨 Latest commit 83a3704
🔍 Latest deploy log https://app.netlify.com/sites/dev-web-novu/deploys/6683be38be76cf0008b0a5de
😎 Deploy Preview https://deploy-preview-5876--dev-web-novu.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jun 29, 2024

Deploy Preview for novu-design failed. Why did it fail? →

Name Link
🔨 Latest commit 83a3704
🔍 Latest deploy log https://app.netlify.com/sites/novu-design/deploys/6683be388f084d0008b3f310

Comment on lines 29 to 32
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Important to keep this redirect last, as Netlify stops evaluating redirects after the first from match - keeping this last ensures that the subdomain redirects occur first, stop matching after redirect, then start to match the greedy /* redirect lastly.

Comment on lines +12 to +13
from = "https://dev.web.novu.co/*"
to = "https://dev.dashboard.novu.co/:splat"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

See Netlify Splat docs for more info.

The asterisk * converts to :splat in their syntax, such that the path is maintained during redirects.

Copy link
Contributor

@antonjoel82 antonjoel82 left a comment

Choose a reason for hiding this comment

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

Looks good!

💭 thought (non-blocking): While we have this changeset, it may be worth substituting all these raw strings with an env variable (or other constant) to avoid having to find all instances in the future.‏

@rifont rifont merged commit a451c8b into next Jul 2, 2024
9 checks passed
@rifont rifont deleted the rename-web-to-dashboard branch July 2, 2024 08:46
github-actions bot pushed a commit that referenced this pull request Jul 2, 2024
* refactor(env): update URLs to use dashboard subdomain

* chore(netlify): reorder redirects in netlify.toml

* refactor(onboarding): remove unused imports
SokratisVidros added a commit that referenced this pull request Jul 2, 2024
* fix(web): local to dev sync modal improvement (#5912)

* fix: wip

* fix: update copy

* fix: remove not reccomended

* feat: manual sync

* fix(api): Nv 4021 syncing to production environment fails for new org (#5916)

* fix(web): set cookie as secure

* fix(web): set cookie as secure

* fix(api): create notification group for both envs

* refactor(root): Rename from `web.novu.co` to `dashboard.novu.co` (#5876)

* refactor(env): update URLs to use dashboard subdomain

* chore(netlify): reorder redirects in netlify.toml

* refactor(onboarding): remove unused imports

* fix(novu): Apply the correct authorization type

* feat(framework): Add trigger capability to defined workflows (#5877)

* test(env.utils): add tests for env utility functions

* refactor(client): Update workflow and error handling

* docs(env.utils): Add comments for getBridgeUrl environments

* refactor: Remove generic type from Workflow definition

* test(env.utils): update bridge URL in development env

* fix(env.utils): correct URL construction in dev environment

* test(workflow): add payload schema to test workflow

* refactor(types): define specific types for event params

* refactor(event.types): update import to use type keyword

* refactor(types): update Workflow and EventTriggerParams

* refactor: rename novu sh tunnel domain

* fix(api): Ensure both web and dashboard subdomains work in parallel (#5919)

* fix(api): Ensure both web and dashboard subdomains work in parallel

This is required for a smooth migration process and to avoid signing out existing users.

* fixup! fix(api): Ensure both web and dashboard subdomains work in parallel

* fixup! fixup! fix(api): Ensure both web and dashboard subdomains work in parallel

* fixup! fixup! fixup! fix(api): Ensure both web and dashboard subdomains work in parallel

* fix(worker): store null in cache after stateless trigger (#5922)

* ci: Remove redundant checkout step in deploy job (#5924)

* refactor(cli): update tunnel URL and submodule commit (#5920)

* feat: add tracking event for sync button clicked (#5925)

* chore(root): Update .source

---------

Co-authored-by: Dima Grossman <dima@grossman.io>
Co-authored-by: Gali Ainouz Baum <ainouzgali@gmail.com>
Co-authored-by: Richard Fontein <32132657+rifont@users.noreply.github.com>
Co-authored-by: Sokratis Vidros <sokratis.vidros@gmail.com>
Co-authored-by: Sokratis Vidros <SokratisVidros@users.noreply.github.com>
Co-authored-by: George Djabarov <39195835+djabarovgeorge@users.noreply.github.com>
Co-authored-by: David Söderberg <2233092+davidsoderberg@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants