File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 28
28
- name : Install dependencies
29
29
run : npm install
30
30
31
- - name : Lint code
32
- run : npm run lint
33
-
34
31
- name : Run tests
35
32
run : npm test
36
33
Original file line number Diff line number Diff line change @@ -7,11 +7,7 @@ export const metadata: Metadata = {
7
7
description : "Generated by create next app" ,
8
8
} ;
9
9
10
- export default function RootLayout ( {
11
- children,
12
- } : {
13
- children : React . ReactNode ;
14
- } ) {
10
+ export default function RootLayout ( { children } : { children : React . ReactNode } ) {
15
11
return (
16
12
< html lang = "en" >
17
13
< body > { children } </ body >
Original file line number Diff line number Diff line change @@ -10,7 +10,9 @@ let connection: typeof mongoose;
10
10
*/
11
11
const connectDB = async ( ) => {
12
12
if ( ! connection ) {
13
- connection = await mongoose . connect ( url ) ;
13
+ // uncomment this line once you have the MONGO_URI set up
14
+ // connection = await mongoose.connect(url);
15
+ connection = "remove me" as any ; // remove me
14
16
return connection ;
15
17
}
16
18
} ;
You can’t perform that action at this time.
0 commit comments