Skip to content

Commit

Permalink
Self-review
Browse files Browse the repository at this point in the history
  • Loading branch information
mvarendorff committed Aug 24, 2024
1 parent f8e6fc3 commit 3c0ca05
Show file tree
Hide file tree
Showing 16 changed files with 7 additions and 127 deletions.

This file was deleted.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
],
"resolutions": {
"react-test-renderer": "18.2.0",
"ts-node": "10.9.1",
"@payloadcms/graphql@npm:3.0.0-beta.55": "patch:@payloadcms/graphql@npm%3A3.0.0-beta.55#~/.yarn/patches/@payloadcms-graphql-npm-3.0.0-beta.55-27e9ac4479.patch"
"ts-node": "10.9.1"
},
"packageManager": "[email protected]"
}
1 change: 1 addition & 0 deletions packages/web/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ schema.graphql

# Uploaded payload
media/
src/app/(payload)/media/
3 changes: 2 additions & 1 deletion packages/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ RUN yarn workspaces focus
FROM node:20.9-alpine AS builder
WORKDIR /app

ARG FRONTEND_URL
ARG NEXT_PUBLIC_FRONTEND_URL
ENV NEXT_PUBLIC_FRONTEND_URL=$NEXT_PUBLIC_FRONTEND_URL

# Copy node_modules and other side products from deps
COPY --from=deps /app/packages/web/ ./packages/web/
Expand Down
6 changes: 2 additions & 4 deletions packages/web/src/app/(app)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {type Metadata} from 'next';
import {Roboto} from 'next/font/google';
import {type PropsWithChildren, Suspense} from 'react';
import {Footer, type NavLinkDefinition} from 'ui';
import {Footer} from 'ui';
import {CookieConsent} from '../../components/cookie-consent/cookie-consent';
import {getCurrentUser} from '../../context/user/user';
import {getNavRoutes} from '../../lib/features/features';
Expand All @@ -18,8 +18,6 @@ const roboto = Roboto({
variable: '--font-roboto',
});

export const dynamic = 'force-dynamic';

export const metadata: Metadata = {
metadataBase: new URL(
process.env.NEXT_PUBLIC_FRONTEND_URL ?? 'http://localhost:3000',
Expand Down Expand Up @@ -50,7 +48,7 @@ export const metadata: Metadata = {

const RootLayout = async ({children}: PropsWithChildren) => {
const user = await getCurrentUser();
const routes: NavLinkDefinition[] = await getNavRoutes();
const routes = await getNavRoutes();

return (
<html lang='en' className={roboto.variable}>
Expand Down
3 changes: 1 addition & 2 deletions packages/web/src/app/(payload)/collections/groupchats.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {
type GeneratedTypes,
type Payload,
type CollectionConfig,
type ValidateOptions,
} from 'payload';
Expand Down Expand Up @@ -54,7 +53,7 @@ export const Groupchats: CollectionConfig = {
// We need to run local operations with certain auth, so we skip if payload is not available
if (!req.payload) return true;

const matchingGroupchats = await (req.payload as Payload).find({
const matchingGroupchats = await req.payload.find({
collection: 'groupchats',
where: {
name: {equals: nameValue},
Expand Down
2 changes: 0 additions & 2 deletions packages/web/src/app/(payload)/collections/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ export const toRequestUser = (
) => ({
collection: 'users',
...user,
// Not a fan of this but it's required to be a valid type for AuthStrategyFunction for now
email: '',
});

export const Users: CollectionConfig = {
Expand Down
Binary file not shown.
Binary file removed packages/web/src/app/(payload)/media/groupchats.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
40 changes: 0 additions & 40 deletions packages/web/src/app/(payload)/plugins/externals.ts

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions packages/web/src/app/(payload)/plugins/mocks/empty.ts

This file was deleted.

38 changes: 0 additions & 38 deletions packages/web/src/app/(payload)/plugins/safe-async-endpoints.ts

This file was deleted.

23 changes: 0 additions & 23 deletions packages/web/src/app/(payload)/plugins/tailwind.ts

This file was deleted.

0 comments on commit 3c0ca05

Please sign in to comment.