2 Komitmen 00fe321507 ... ac0af1ac11

Pembuat SHA1 Pesan Tanggal
  YusufSyam ac0af1ac11 feat: puyeng, for now set cors to all 3 minggu lalu
  YusufSyam bf8d2af4e0 chores: update cors & csrf 3 minggu lalu
1 mengubah file dengan 2 tambahan dan 3 penghapusan
  1. 2 3
      src/payload.config.ts

+ 2 - 3
src/payload.config.ts

@@ -35,11 +35,10 @@ export default buildConfig({
     },
   }),
   sharp,
-  cors: ['http://localhost:3000'],
-  csrf: ['http://localhost:3000'],
+  cors: '*',
   plugins: [
     vercelBlobStorage({
-      enabled: process.env.NODE_ENV === 'test',
+      enabled: true,
       collections: {
         media: true, // Aktifkan untuk collection 'media'
       },