Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 1.89 KB

README.md

File metadata and controls

36 lines (29 loc) · 1.89 KB

#Group-4-Flight-Booking-Ecommerce Group 4's repo for our ecommerce based flights app.

To run locally:

  • open the vite.config.js file
  • remove the underscore ( _ ) from the line _global:({}) as seen below:

| export default defineConfig({ | | plugins: [react()], | | define: { | | // By default, Vite doesn't include shims for NodeJS/ | | // necessary for segment analytics lib to work | | this--> _global:({}) | | }, | | }); | |_______________________________________________________________________|

To run the website hosted by Amplify:

  • open the vite.config.js file
  • ensure the underscore ( _ ) from the line _global:({}) is present, as seen below:

| export default defineConfig({ | | plugins: [react()], | | define: { | | // By default, Vite doesn't include shims for NodeJS/ | | // necessary for segment analytics lib to work | | this--> _global:({}) | | }, | | }); | |_______________________________________________________________________|