diff --git a/.syncignore b/.syncignore new file mode 100644 index 0000000..5ef6a52 --- /dev/null +++ b/.syncignore @@ -0,0 +1,41 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.* +.yarn/* +!.yarn/patches +!.yarn/plugins +!.yarn/releases +!.yarn/versions + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* +.pnpm-debug.log* + +# env files (can opt-in for committing if needed) +.env* + +# vercel +.vercel + +# typescript +*.tsbuildinfo +next-env.d.ts diff --git a/src/app/api/session/route.ts b/src/app/api/session/route.ts index 38b017b..864578d 100644 --- a/src/app/api/session/route.ts +++ b/src/app/api/session/route.ts @@ -67,7 +67,7 @@ export async function POST(req: NextRequest) { if (!user) return NextResponse.json( { - message: 'Invalid email', + message: 'Email does not exist', }, { status: 401 } ); diff --git a/src/app/calendar/calendar.tsx b/src/app/calendar/calendar.tsx index 59a441b..340e2d6 100644 --- a/src/app/calendar/calendar.tsx +++ b/src/app/calendar/calendar.tsx @@ -140,7 +140,7 @@ export default function Calendar({ onClick={() => { axios .delete( - `https://klayrion.netlify.app/api/posts`, + `/api/posts`, { params: { id: sessionId, diff --git a/src/app/calendar/page.tsx b/src/app/calendar/page.tsx index 59b3a41..0d23597 100644 --- a/src/app/calendar/page.tsx +++ b/src/app/calendar/page.tsx @@ -15,7 +15,7 @@ export default function CalendarApp() { const [events, setEvents] = useState([]); useEffect(() => { - axios.get(`https://klayrion.netlify.app/api/posts/?id=${sessionId}`).then((response) => { + axios.get(`/api/posts/?id=${sessionId}`).then((response) => { const v = response.data.schedules.map((e: any) => ({ date: parse(e.scheduled, 'yyyy-MM-dd HH:mm', new Date()), platforms: e.platforms, diff --git a/src/app/calendar/postDialog.tsx b/src/app/calendar/postDialog.tsx index 5c17c2f..9928bf0 100644 --- a/src/app/calendar/postDialog.tsx +++ b/src/app/calendar/postDialog.tsx @@ -126,7 +126,7 @@ export default function PostDialog({