Skip to content

Commit 51993a7

Browse files
committed
feat: simplify example
1 parent a2a692d commit 51993a7

10 files changed

+25
-244
lines changed

run/nextjs-helloworld/.eslintrc.json

-3
This file was deleted.

run/nextjs-helloworld/.gitignore

-50
This file was deleted.

run/nextjs-helloworld/README.md

-36
This file was deleted.

run/nextjs-helloworld/next.config.mjs run/nextjs-helloworld/app/layout.jsx

+8-7
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,18 @@
44
// you may not use this file except in compliance with the License.
55
// You may obtain a copy of the License at
66
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
7+
// https://www.apache.org/licenses/LICENSE-2.0
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
/** @type {import('next').NextConfig} */
16-
const nextConfig = {
17-
output: 'standalone',
18-
};
19-
20-
export default nextConfig;
15+
export default function RootLayout({ children }) {
16+
return (
17+
<html lang="en">
18+
<body>{children}</body>
19+
</html>
20+
);
21+
}

run/nextjs-helloworld/app/layout.tsx

-35
This file was deleted.

run/nextjs-helloworld/postcss.config.js run/nextjs-helloworld/app/page.jsx

+4-7
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,14 @@
44
// you may not use this file except in compliance with the License.
55
// You may obtain a copy of the License at
66
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
7+
// https://www.apache.org/licenses/LICENSE-2.0
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
module.exports = {
16-
plugins: {
17-
tailwindcss: {},
18-
autoprefixer: {},
19-
},
20-
};
15+
export default function Page() {
16+
return <h1>Hello, Next.js!</h1>;
17+
}

run/nextjs-helloworld/app/page.tsx

-26
This file was deleted.

run/nextjs-helloworld/package.json

+13-20
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,20 @@
11
{
2-
"name": "nextjs-helloworld",
3-
"version": "0.1.0",
4-
"private": true,
2+
"name": "helloworld",
3+
"description": "Simple hello world sample in Next.js",
4+
"version": "1.0.0",
55
"scripts": {
6-
"dev": "next dev",
6+
"dev": "next dev --turbo",
77
"build": "next build",
8-
"start": "next start",
9-
"lint": "next lint"
8+
"start": "next start"
109
},
11-
"dependencies": {
12-
"react": "^18",
13-
"react-dom": "^18",
14-
"next": "14.1.0"
10+
"engines": {
11+
"node": ">=20.0.0"
1512
},
16-
"devDependencies": {
17-
"typescript": "^5",
18-
"@types/node": "^20",
19-
"@types/react": "^18",
20-
"@types/react-dom": "^18",
21-
"autoprefixer": "^10.0.1",
22-
"postcss": "^8",
23-
"tailwindcss": "^3.3.0",
24-
"eslint": "^8",
25-
"eslint-config-next": "14.1.0"
13+
"author": "Google LLC",
14+
"license": "Apache-2.0",
15+
"dependencies": {
16+
"next": "14.1.0",
17+
"react": "18.2.0",
18+
"react-dom": "18.2.0"
2619
}
2720
}

run/nextjs-helloworld/tailwind.config.ts

-34
This file was deleted.

run/nextjs-helloworld/tsconfig.json

-26
This file was deleted.

0 commit comments

Comments
 (0)