jdsl
jdsl
TTCTheo's Typesafe Cult
Created by Hycord | @ When Replying on 5/10/2023 in #questions
Next 13.4.1 Builds Fine On Local System But Fails On Vercel
22 replies
TTCTheo's Typesafe Cult
Created by Hycord | @ When Replying on 5/10/2023 in #questions
Next 13.4.1 Builds Fine On Local System But Fails On Vercel
Anything being used/shared between all these pages that could hint at the problem?
[08:30:56.050] > Export encountered errors on following paths:
[08:30:56.050] /contact/page: /contact
[08:30:56.050] /contact/success/page: /contact/success
[08:30:56.050] /faq/page: /faq
[08:30:56.050] /forums/page: /forums
[08:30:56.050] /page: /
[08:30:56.050] /store/page: /store
[08:30:56.050] /team/page: /team
[08:30:56.050] /vote/page: /vote
[08:30:56.050] > Export encountered errors on following paths:
[08:30:56.050] /contact/page: /contact
[08:30:56.050] /contact/success/page: /contact/success
[08:30:56.050] /faq/page: /faq
[08:30:56.050] /forums/page: /forums
[08:30:56.050] /page: /
[08:30:56.050] /store/page: /store
[08:30:56.050] /team/page: /team
[08:30:56.050] /vote/page: /vote
22 replies
TTCTheo's Typesafe Cult
Created by Perfect on 4/28/2023 in #questions
Acceptable Layout Shift
This looks fine! Plus it doesn't shift anything that the user might have tried to interact with during that time. All the header buttons were good, etc.
5 replies
TTCTheo's Typesafe Cult
Created by Liam B on 4/27/2023 in #questions
How can I make sure two arrays contain the same keys (in seperate files)
// config/styles.ts
interface Style {
id: string;
label: string;
description: string;
prompt: string;
}

export const styles: Style[] = [
{ id: "outline", label: "Outline", description: "Outline", prompt: "outline, vector art, minimalist" },
{ id: "solid", label: "Solid", description: "Solid", prompt: "solid, etc" },
{ id: "duotone", label: "Duotone", description: "Duotone", prompt: "duotone, etc" },
];
// config/styles.ts
interface Style {
id: string;
label: string;
description: string;
prompt: string;
}

export const styles: Style[] = [
{ id: "outline", label: "Outline", description: "Outline", prompt: "outline, vector art, minimalist" },
{ id: "solid", label: "Solid", description: "Solid", prompt: "solid, etc" },
{ id: "duotone", label: "Duotone", description: "Duotone", prompt: "duotone, etc" },
];
// pages/generate.tsx
// server/api/generate.ts
import { styles } from '~/config/styles';
// pages/generate.tsx
// server/api/generate.ts
import { styles } from '~/config/styles';
8 replies
TTCTheo's Typesafe Cult
Created by Liam B on 4/27/2023 in #questions
How can I make sure two arrays contain the same keys (in seperate files)
if they are also related that closely, I would combine them and include the prompt key in the original style array. They already share the same id, etc.
8 replies
TTCTheo's Typesafe Cult
Created by Liam B on 4/27/2023 in #questions
How can I make sure two arrays contain the same keys (in seperate files)
I would create a shared file that exports the styles array and import it into any file that needs them
8 replies
TTCTheo's Typesafe Cult
Created by beepboopquack on 4/25/2023 in #questions
Need Help Implementing Builder.io
23 replies
TTCTheo's Typesafe Cult
Created by beepboopquack on 4/25/2023 in #questions
Need Help Implementing Builder.io
ENV is setup correctly
23 replies
TTCTheo's Typesafe Cult
Created by beepboopquack on 4/25/2023 in #questions
Need Help Implementing Builder.io
Note: on your github the latest commit is missing @builder.io/react from packages. That's the only thing I had to add.
23 replies
TTCTheo's Typesafe Cult
Created by beepboopquack on 4/25/2023 in #questions
Need Help Implementing Builder.io
Try adding some content to your builder.io account and a few more test pages. They should show up.
23 replies
TTCTheo's Typesafe Cult
Created by beepboopquack on 4/25/2023 in #questions
Need Help Implementing Builder.io
If you want something from Builder.io to be your index page, I think you need to publish a / path and that should work
23 replies
TTCTheo's Typesafe Cult
Created by beepboopquack on 4/25/2023 in #questions
Need Help Implementing Builder.io
So it's connecting and getting a single test page as published content. If you hit it http://localhost:3000/test-page then I get a blank page.
23 replies
TTCTheo's Typesafe Cult
Created by beepboopquack on 4/25/2023 in #questions
Need Help Implementing Builder.io
So it actually looks like it's working. When I build and look at the path content from your builder.io I see:
PATHS: [ '/test-page' ]
PATHS: [ '/test-page' ]
23 replies
TTCTheo's Typesafe Cult
Created by beepboopquack on 4/25/2023 in #questions
Need Help Implementing Builder.io
If that's working, I would move to logging the pages variable in getStaticPaths to see if you are connecting and getting all available pages from Builder.io
23 replies