Skip to content
Open
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
2 changes: 1 addition & 1 deletion app/api/bookmarks/check/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import connectDB from '@/config/database';
import User from '@/models/User';
import { getSessionUser } from '@/utils/getSessionUser';

export const dynamic = 'force-dynamic';
//export const dynamic = 'force-dynamic';

export const POST = async (request) => {
try {
Expand Down
2 changes: 1 addition & 1 deletion app/api/bookmarks/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import User from '@/models/User';
import Property from '@/models/Property';
import { getSessionUser } from '@/utils/getSessionUser';

export const dynamic = 'force-dynamic';
//export const dynamic = 'force-dynamic';

// GET /api/bookmarks
export const GET = async () => {
Expand Down
2 changes: 1 addition & 1 deletion app/api/messages/[id]/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import connectDB from '@/config/database';
import Message from '@/models/Message';
import { getSessionUser } from '@/utils/getSessionUser';

export const dynamic = 'force-dynamic';
//export const dynamic = 'force-dynamic';

// PUT /api/messages/:id
export const PUT = async (request, { params }) => {
Expand Down
2 changes: 1 addition & 1 deletion app/api/messages/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import connectDB from '@/config/database';
import Message from '@/models/Message';
import { getSessionUser } from '@/utils/getSessionUser';

export const dynamic = 'force-dynamic';
//export const dynamic = 'force-dynamic';

// GET /api/messages
export const GET = async () => {
Expand Down
2 changes: 1 addition & 1 deletion app/api/messages/unread-count/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import connectDB from '@/config/database';
import Message from '@/models/Message';
import { getSessionUser } from '@/utils/getSessionUser';

export const dynamic = 'force-dynamic';
//export const dynamic = 'force-dynamic';

// GET /api/messages/unread-count
export const GET = async (request) => {
Expand Down
2 changes: 2 additions & 0 deletions app/layout.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export const dynamic = 'force-dynamic'; //code need only be included here

import Navbar from '@/components/Navbar';
import Footer from '@/components/Footer';
import AuthProvider from '@/components/AuthProvider';
Expand Down
13 changes: 0 additions & 13 deletions env.example

This file was deleted.