SeattleColleges / nsc-events-nextjs

NSC Events Web Application
MIT License
5 stars 5 forks source link

nsc-events-nextjs-9-508-archived-event-detail-page-doesnt-load #519

Closed cshimm closed 2 months ago

cshimm commented 2 months ago

resolves #508

Now you should be able to view the event detail page from any page that displays a list of events (home page, archived events, my events)

It should be noted that only the events that were loaded on the page before clicking an event can be accessed via the next and previous buttons. This was the behavior before this fix. I think I could implement a way to cycle through all of the events of each category via the event detail page in a separate issue if necessary.

https://github.com/SeattleColleges/nsc-events-nextjs/assets/13278479/ad942c01-df00-4946-bebe-68b311a99f1f

ken-ni commented 2 months ago

Hello @cshimm, I'm trying to test your changes on the branch but for some reason I'm getting a CORS error and I can't login nor are any of my events loading: login error Do you have any idea what could be causing this? I would like to test your awesome changes!

cshimm commented 2 months ago

hi @ken-ni I believe that the problem may be specific to your local machine's configuration. Can you provide what your next.config.js file looks like? You need to either run the server locally or have the line NSC_EVENTS_PUBLIC_API_URL: "https://northseattlecollegeevents.com/api", uncommented out.