Skip to content

Commit

Permalink
chore: schema name update; fix: server action body size limit increased
Browse files Browse the repository at this point in the history
  • Loading branch information
harshsoni-harsh committed Feb 1, 2025
1 parent d838a9c commit 5e53755
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 9 deletions.
6 changes: 5 additions & 1 deletion next.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import type { NextConfig } from 'next';

const nextConfig: NextConfig = {
/* config options here */
experimental: {
serverActions: {
bodySizeLimit: '10mb',
},
},
};

export default nextConfig;
7 changes: 5 additions & 2 deletions src/sanity/schemaTypes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ import { krcDataTelFull } from './researchDevelopment/KrcDataTelFull';
import { FacultyAdvisor, Issues, Member, Team } from './studentLife/Magazine';
import { Club } from './studentLife/Members';
import { NIRF } from './reportsAndRankings/Nirf';
import { research, advertisement } from './researchDevelopment/Research';
import {
research,
researchAdvertisement,
} from './researchDevelopment/Research';
import { senate } from './governanceAndAdministration/Senate';
import { staff } from './academics/Staff';
import { visitor } from './generalInfo/Visitor';
Expand All @@ -46,7 +49,7 @@ import { student_coordinators } from './studentLife/student_coordinators';
export const schema: { types: SchemaTypeDefinition[] } = {
types: [
research,
advertisement,
researchAdvertisement,
campusData,
facilities,
krcData,
Expand Down
4 changes: 2 additions & 2 deletions src/sanity/schemaTypes/newsAndUpdates/Former.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { defineField, defineType } from 'sanity';
import { UsersIcon } from 'lucide-react';

export const former = defineType({
name: 'former',
title: 'Former',
name: 'formerDirector',
title: 'Former Director',
type: 'document',
icon: UsersIcon,
fields: [
Expand Down
4 changes: 2 additions & 2 deletions src/sanity/schemaTypes/researchDevelopment/Research.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ export const research = defineType({
],
});

export const advertisement = defineType({
name: 'advertisement',
export const researchAdvertisement = defineType({
name: 'research_advertisement',
type: 'document',
title: 'Research Advertisement',
fields: [
Expand Down
6 changes: 4 additions & 2 deletions src/sanity/structure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,10 @@ export const structure: StructureResolver = (S) =>
.title('Tenders')
.child(S.documentTypeList('tender').title('Tenders')),
S.listItem()
.title('Former')
.child(S.documentTypeList('former').title('Former')),
.title('Former Director')
.child(
S.documentTypeList('formerDirector').title('Former Director')
),
S.listItem()
.title('Building And Works')
.child(
Expand Down

0 comments on commit 5e53755

Please sign in to comment.