chore(release): merge dev to main for v1.10.1

This commit is contained in:
mARTin 2026-03-02 08:26:14 +01:00
commit 3c327f30be
6 changed files with 12 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "my-weekly-todo-list",
"version": "1.10.0",
"version": "1.10.1",
"description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view",
"main": "index.js",
"scripts": {

View File

@ -4,6 +4,8 @@ import { authOptions } from "@/lib/auth";
import { prisma } from '@/lib/prisma';
import { getTokens, getUserCalendars } from '@/lib/outlook-calendar';
export const dynamic = 'force-dynamic';
export async function GET(request: NextRequest) {
const baseUrl = process.env.NEXTAUTH_URL || request.url;

View File

@ -3,6 +3,8 @@ import { getServerSession } from 'next-auth';
import { authOptions } from "@/lib/auth";
import { getAuthUrl } from '@/lib/outlook-calendar';
export const dynamic = 'force-dynamic';
export async function GET(request: NextRequest) {
try {
const session = await getServerSession(authOptions);

View File

@ -4,6 +4,8 @@ import { authOptions } from '@/lib/auth';
import { prisma } from '@/lib/prisma';
import { getHolidayHint } from '@/lib/holidays';
export const dynamic = 'force-dynamic';
export async function GET(req: Request) {
try {
const session = await getServerSession(authOptions);

View File

@ -6,6 +6,8 @@ import { createGoogleClient, fetchGoogleTaskLists } from '@/lib/google-tasks';
import { fetchMsTodoLists } from '@/lib/microsoft-todo';
import { getOutlookAccessToken } from '@/lib/outlook-token';
export const dynamic = 'force-dynamic';
const prisma = new PrismaClient();
export async function GET(req: NextRequest) {

View File

@ -163,7 +163,9 @@ export const getUpcomingEvents = async (
);
if (!response.ok) {
throw new Error(`Failed to fetch events: ${response.statusText}`);
const errorText = await response.text();
console.error(`[OUTLOOK] Failed to fetch events for calendar ${calendarId}:`, response.status, response.statusText, errorText);
throw new Error(`Failed to fetch events: ${response.status} ${response.statusText}`);
}
const data = await response.json();