Skip to content

Commit

Permalink
refactor: colocate integrations in single dir
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewvolk committed Jun 21, 2024
1 parent f2f7cff commit 16c9c76
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/[locale]/(default)/[...rest]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { getSiteVersion } from '@makeswift/runtime/next/server';
import { notFound } from 'next/navigation';

import { locales } from '~/i18n';
import { client } from '~/makeswift/client';
import { MakeswiftProvider } from '~/makeswift/provider';
import { client } from '~/integrations/makeswift/client';
import { MakeswiftProvider } from '~/integrations/makeswift/provider';

interface CatchAllParams {
locale: string;
Expand Down
2 changes: 1 addition & 1 deletion app/api/makeswift/[...makeswift]/route.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MakeswiftApiHandler } from '@makeswift/runtime/next/server';
import { strict } from 'assert';

import { runtime } from '~/makeswift/runtime';
import { runtime } from '~/integrations/makeswift/runtime';

strict(process.env.MAKESWIFT_SITE_API_KEY, 'MAKESWIFT_SITE_API_KEY is required');

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import { ReactRuntimeProvider, RootStyleRegistry } from '@makeswift/runtime/next';

import { runtime } from '~/makeswift/runtime';
import '~/makeswift/components';
import { runtime } from '~/integrations/makeswift/runtime';
import '~/integrations/makeswift/components';

export function MakeswiftProvider({ children }: { children: React.ReactNode }) {
return (
Expand Down
File renamed without changes.

0 comments on commit 16c9c76

Please sign in to comment.