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

[BUG] Weird message when building the app ( investigate ) #659

Closed
pblvrt opened this issue Jun 26, 2024 · 1 comment
Closed

[BUG] Weird message when building the app ( investigate ) #659

pblvrt opened this issue Jun 26, 2024 · 1 comment
Assignees
Labels
bug Something isn't working low priority Do it when you have time

Comments

@pblvrt
Copy link
Contributor

pblvrt commented Jun 26, 2024

Describe the bug
When building the app, I see this error message

n [Error]: Dynamic server usage: no-store fetch https://api.streameth.org/organizations/protolayers /protolayers at /Users/pablovoorvaart/Code/streameth-platform/packages/app/.next/server/chunks/4522.js:2:8558 at /Users/pablovoorvaart/Code/streameth-platform/packages/app/.next/server/chunks/4522.js:2:15891 at a.with (/Users/pablovoorvaart/Code/streameth-platform/packages/app/.next/server/chunks/4522.js:1:8884) at c.with (/Users/pablovoorvaart/Code/streameth-platform/packages/app/.next/server/chunks/4522.js:1:3084) at c.startActiveSpan (/Users/pablovoorvaart/Code/streameth-platform/packages/app/.next/server/chunks/4522.js:1:18139) at a.startActiveSpan (/Users/pablovoorvaart/Code/streameth-platform/packages/app/.next/server/chunks/4522.js:1:18673) at /Users/pablovoorvaart/Code/streameth-platform/packages/app/.next/server/chunks/4522.js:2:15424 at a.with (/Users/pablovoorvaart/Code/streameth-platform/packages/app/.next/server/chunks/4522.js:1:8884) at c.with (/Users/pablovoorvaart/Code/streameth-platform/packages/app/.next/server/chunks/4522.js:1:3084) at b.trace (/Users/pablovoorvaart/Code/streameth-platform/packages/app/.next/server/chunks/4522.js:2:15378) { description: 'no-store fetch https://api.streameth.org/organizations/protolayers /protolayers', digest: 'DYNAMIC_SERVER_USAGE' } n [Error]: Dynamic server usage: no-store fetch https://api.streameth.org/organizations/party_action_people /party_action_people at /Users/pablovoorvaart/Code/streameth-platform/packages/app/.next/server/chunks/4522.js:2:8558 at /Users/pablovoorvaart/Code/streameth-platform/packages/app/.next/server/chunks/4522.js:2:15891 at a.with (/Users/pablovoorvaart/Code/streameth-platform/packages/app/.next/server/chunks/4522.js:1:8884) at c.with (/Users/pablovoorvaart/Code/streameth-platform/packages/app/.next/server/chunks/4522.js:1:3084) at c.startActiveSpan (/Users/pablovoorvaart/Code/streameth-platform/packages/app/.next/server/chunks/4522.js:1:18139) at a.startActiveSpan (/Users/pablovoorvaart/Code/streameth-platform/packages/app/.next/server/chunks/4522.js:1:18673) at /Users/pablovoorvaart/Code/streameth-platform/packages/app/.next/server/chunks/4522.js:2:15424 at a.with (/Users/pablovoorvaart/Code/streameth-platform/packages/app/.next/server/chunks/4522.js:1:8884) at c.with (/Users/pablovoorvaart/Code/streameth-platform/packages/app/.next/server/chunks/4522.js:1:3084) at b.trace (/Users/pablovoorvaart/Code/streameth-platform/packages/app/.next/server/chunks/4522.js:2:15378) { description: 'no-store fetch https://api.streameth.org/organizations/party_action_people /party_action_people', digest: 'DYNAMIC_SERVER_USAGE' }

To Reproduce
Steps to reproduce the behavior:

  1. Build the app on local

Expected behavior
Organization pages should be statically generated, this is saying that is dynamically generated I think

@pblvrt pblvrt added the bug Something isn't working label Jun 26, 2024
@Mario-SO Mario-SO removed this from ✨ Features Jul 1, 2024
@Mario-SO Mario-SO moved this to ✅ Done in 🐛 Bugs Jul 2, 2024
@Mario-SO Mario-SO closed this as completed by moving to ✅ Done in 🐛 Bugs Jul 2, 2024
@Mario-SO Mario-SO removed the status in 🐛 Bugs Jul 2, 2024
@Mario-SO Mario-SO reopened this Jul 2, 2024
@Mario-SO Mario-SO closed this as completed Jul 2, 2024
@Mario-SO Mario-SO reopened this Jul 2, 2024
@github-project-automation github-project-automation bot moved this to ✅ Done in 🐛 Bugs Jul 2, 2024
@Mario-SO Mario-SO removed the status in 🐛 Bugs Jul 2, 2024
@Mario-SO Mario-SO added the low priority Do it when you have time label Jul 2, 2024
@Mario-SO Mario-SO moved this to 🔖 Ready in 🐛 Bugs Jul 22, 2024
@greatsamist greatsamist moved this to 🗂 Backlog in 🚀 Sprint plan Jul 29, 2024
@greatsamist greatsamist moved this from 🗂 Backlog to 🔖 To-Do in 🚀 Sprint plan Jul 29, 2024
@greatsamist greatsamist self-assigned this Jul 29, 2024
@xannyxs xannyxs assigned xannyxs and unassigned greatsamist Aug 7, 2024
@xannyxs xannyxs moved this from 🔖 To-Do to 🏗️ In progress in 🚀 Sprint plan Aug 7, 2024
@xannyxs xannyxs linked a pull request Aug 7, 2024 that will close this issue
9 tasks
@Mario-SO Mario-SO moved this from 🔖 To-Do to 🏗 In progress in 🐛 Bugs Aug 12, 2024
@greatsamist
Copy link
Contributor

Issue resolved. There was a generateStaticParams function causing issues due to its asynchronous behavior and unnecessary code execution on the organization page.

export async function generateStaticParams() {
  const organizations = await fetchOrganizations();
  const paths = organizations.map((organization) => ({
    organization: organization.slug,
  }));
  return paths;
}

Fix

Remove unused code
see in a743139

@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in 🚀 Sprint plan Aug 13, 2024
@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in 🐛 Bugs Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working low priority Do it when you have time
Projects
Status: ✅ Done
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

4 participants