Skip to content

Commit

Permalink
feat: migrate to app directory
Browse files Browse the repository at this point in the history
  • Loading branch information
theodorusclarence committed Jul 17, 2023
1 parent decab23 commit 9a2a73b
Show file tree
Hide file tree
Showing 31 changed files with 699 additions and 1,964 deletions.
1 change: 1 addition & 0 deletions next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
/// <reference types="next/navigation-types/compat/navigation" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
19 changes: 0 additions & 19 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,6 @@ const nextConfig = {
// 'res.cloudinary.com',
// ],
// },

// SVGR
webpack(config) {
config.module.rules.push({
test: /\.svg$/i,
issuer: /\.[jt]sx?$/,
use: [
{
loader: '@svgr/webpack',
options: {
typescript: true,
icon: true,
},
},
],
});

return config;
},
};

module.exports = nextConfig;
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"devDependencies": {
"@commitlint/cli": "^16.3.0",
"@commitlint/config-conventional": "^16.2.4",
"@svgr/webpack": "^6.5.1",
"@tailwindcss/forms": "^0.5.3",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
Expand Down
9 changes: 0 additions & 9 deletions public/favicon/browserconfig.xml

This file was deleted.

Binary file removed public/favicon/large-og.jpg
Binary file not shown.
Binary file removed public/favicon/mstile-150x150.png
Binary file not shown.
25 changes: 0 additions & 25 deletions public/favicon/safari-pinned-tab.svg

This file was deleted.

Binary file removed public/images/large-og.png
Binary file not shown.
Binary file added public/images/og.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 0 additions & 13 deletions src/__tests__/pages/404.test.tsx

This file was deleted.

5 changes: 5 additions & 0 deletions src/app/api/hello/route.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { NextResponse } from 'next/server';

export async function GET() {
return NextResponse.json({ hello: 'Next.js' });
}
15 changes: 15 additions & 0 deletions src/app/components/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Metadata } from 'next';
import * as React from 'react';

export const metadata: Metadata = {
title: 'Components',
description: 'Pre-built components with awesome default',
};

export default function ComponentsLayout({
children,
}: {
children: React.ReactNode;
}) {
return <>{children}</>;
}
Loading

0 comments on commit 9a2a73b

Please sign in to comment.