Police-Data-Accessibility-Project / pdap.io

Static HTML front page
https://pdap.io
MIT License
1 stars 2 forks source link

refactor: update render of QuickSearchForm on HomeView #170

Closed joshuagraber closed 7 months ago

joshuagraber commented 7 months ago

This will take care of #169 when merged to main. Also: bumped vite to 4.5.1 to address a security vulnerability.

To test

Check out PR, then locally:

  1. Run npm run build && npm run preview
  2. Search from home page.
  3. You should be redirected to https://data-sources.pdap.io/search....
  4. Kill the preview server.
  5. Run npm run build -- --mode development && npm run preview
  6. Repeat step 2
  7. You should be redirected to https://data-sources.pdap.dev/search....

NOTE: As a part of this work, I updated the build command for pdap.dev in Digital Ocean to be npm run build -- --mode development. So we'll need to double check that this is all working correctly when deployed on merge to dev before going to main (although pdap.io's build command remains unchanged, FWIW).