@hellocoop/quickstart 2.4.0 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/next.mjs +5 -4
- package/package.json +1 -1
package/next.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import 'dotenv/config'
|
|
|
8
8
|
import quickstart from './index.js';
|
|
9
9
|
import { randomBytes } from 'crypto'
|
|
10
10
|
|
|
11
|
-
const HELLO_CONFIG_FILE = 'hello.config.
|
|
11
|
+
const HELLO_CONFIG_FILE = 'hello.config.ts'
|
|
12
12
|
const HELLO_COOP_FILE = 'pages/api/hellocoop.ts'
|
|
13
13
|
const ENV_FILE = '.env.local'
|
|
14
14
|
|
|
@@ -23,7 +23,7 @@ const writeConfig = async (options) => {
|
|
|
23
23
|
statSync(filePath)
|
|
24
24
|
const append = `
|
|
25
25
|
// added by @hellocoop/quickstart --nextjs on ${(new Date()).toISOString()}
|
|
26
|
-
config.client_id:'${
|
|
26
|
+
config.client_id:'${client_id}'
|
|
27
27
|
`
|
|
28
28
|
appendFileSync( filePath, append)
|
|
29
29
|
console.log(`\nUpdated ${filePath} with:`)
|
|
@@ -70,8 +70,9 @@ const writeHelloCoop = async () => {
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
const content = `// ${HELLO_COOP_FILE}
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
// generated by @hellocoop/quickstart --nextjs on ${(new Date()).toISOString()}
|
|
74
|
+
// this file should not need to be edited
|
|
75
|
+
import config from '../../hello.config'
|
|
75
76
|
import { pageAuth } from '@hellocoop/nextjs'
|
|
76
77
|
export default pageAuth(config)
|
|
77
78
|
`
|