Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions apps/app/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import analyzer from '@next/bundle-analyzer';
import { getPreviewApiUrl } from '@op/core/previews';
import { withTranspiledWorkspacesForNext } from '@op/styles/tailwind-utils';
import { withPostHogConfig } from '@posthog/nextjs-config';
import dotenv from 'dotenv';
import createNextIntlPlugin from 'next-intl/plugin';
Expand Down Expand Up @@ -153,12 +154,15 @@ const currentBranch = getCurrentBranch();
const allowedBranches = ['dev', 'main'];
const shouldUploadSourcemaps = allowedBranches.includes(currentBranch);

export default withPostHogConfig(withBundleAnalyzer(withNextIntl(config)), {
personalApiKey: process.env.POSTHOG_API_KEY,
envId: process.env.POSTHOG_ENV_ID,
project: 'common',
host: 'https://eu.i.posthog.com',
sourcemaps: {
enabled: shouldUploadSourcemaps,
export default withPostHogConfig(
withBundleAnalyzer(withNextIntl(withTranspiledWorkspacesForNext(config))),
{
personalApiKey: process.env.POSTHOG_API_KEY,
envId: process.env.POSTHOG_ENV_ID,
project: 'common',
host: 'https://eu.i.posthog.com',
sourcemaps: {
enabled: shouldUploadSourcemaps,
},
},
});
);
2 changes: 1 addition & 1 deletion apps/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@op/hooks": "workspace:*",
"@op/logging": "workspace:*",
"@op/realtime": "workspace:*",
"@op/styles": "workspace:^",
"@op/styles": "workspace:*",
"@op/supabase": "workspace:*",
"@op/types": "workspace:*",
"@op/ui": "workspace:*",
Expand Down
9 changes: 2 additions & 7 deletions apps/app/postcss.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
// PostCSS config for Tailwind CSS v4
// https://tailwindcss.com/docs/installation/using-postcss
import { postcssConfig } from '@op/styles/postcss';

export default {
plugins: {
'@tailwindcss/postcss': {},
},
};
export default postcssConfig;
Binary file added apps/app/public/coming-soon-hero.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions apps/app/public/logo-common.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/app/public/logo-maria-fund.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/app/public/logo-new-economy-coalition.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/app/public/logo-people-powered.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 9 additions & 1 deletion apps/app/src/app/api/waitlist-signup/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,20 @@ mailchimpClient.setConfig({
export async function POST(req: NextRequest) {
const body = await req.json();

const { email } = body;
const { firstName, lastName, email, organizationName } = body;

console.log({ firstName, lastName, email, organizationName });

if (!email) {
return Response.json({ error: 'Email is required' }, { status: 400 });
}

if (!firstName) {
return Response.json({ error: 'First name is required' }, { status: 400 });
}
if (!lastName) {
return Response.json({ error: 'Last name is required' }, { status: 400 });
}
// Generate hash from email to check if exists in Mailchimp
// If it exists, we'll update the user using `setListMember`
// That way, this endpoint doesn't fail if a user signs up twice
Expand Down
Loading