diff --git a/strapi/config/plugins.ts b/strapi/config/plugins.ts index c337442..f2dbae1 100644 --- a/strapi/config/plugins.ts +++ b/strapi/config/plugins.ts @@ -1,28 +1,16 @@ module.exports = ({ env }) => ({ - // ... - // upload: { - // config: { - // provider: "aws-s3", - // providerOptions: { - // s3Options: { - // credentials: { - // accessKeyId: env("AWS_ACCESS_KEY_ID"), - // secretAccessKey: env("AWS_SECRET_ACCESS_KEY"), - // }, - // region: env("AWS_REGION"), - // endpoint: env("AWS_ENDPOINT_URL_S3"), - // params: { - // Bucket: env("BUCKET_NAME"), - // }, - // }, - // }, - // actionOptions: { - // upload: {}, - // uploadStream: {}, - // delete: {}, - // }, - // }, - // }, + upload: { + config: { + breakpoints: { + // Image sizes + xlarge: 1920, + large: 1000, + medium: 750, + small: 500, + thumbnail: 64, + }, + }, + }, "strapi-plugin-populate-deep": { config: { defaultDepth: 3, // Default is 5 diff --git a/web/src/lib/strapi.ts b/web/src/lib/strapi.ts index 4810042..5dd7808 100644 --- a/web/src/lib/strapi.ts +++ b/web/src/lib/strapi.ts @@ -29,8 +29,11 @@ export default async function fetchApi({ url.searchParams.append(key, value); }); } - const res = await fetch(url.toString()); - console.log(url.toString()); + const res = await fetch(url.toString(), { + headers: { + authorization: `Bearer ${import.meta.env.STRAPI_API_KEY}`, + }, + }); let data = await res.json(); if (wrappedByKey) { diff --git a/web/src/pages/events/index.astro b/web/src/pages/events/index.astro new file mode 100644 index 0000000..601e76b --- /dev/null +++ b/web/src/pages/events/index.astro @@ -0,0 +1,14 @@ +--- +import Layout from "@/layouts/layout.astro"; +--- + + +
+

Upcoming Events

+

+ WDCC hosts regular workshops, competitions and social events throughout the year. + We aim to help students develop practical skills that can be used in the workforce. + We host social events to help students network among peers and with industry people. +

+
+