Skip to content

Commit 63391b1

Browse files
committed
Update logging
1 parent 1a12543 commit 63391b1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ async function generateSSO({
4444
await fs.mkdir(functionsDir, { recursive: true })
4545
await fs.mkdir(publishDir, { recursive: true })
4646

47+
console.log('Copying static assets...')
4748
const staticFileDir = path.resolve(__dirname, '../static')
4849
await fs.copyFile(
4950
path.join(staticFileDir, 'sso-login.html'),
@@ -107,13 +108,13 @@ module.exports = {
107108
// Build constants
108109
constants: { PUBLISH_DIR, FUNCTIONS_SRC },
109110
}) {
110-
console.log('Copying static assets...')
111-
112111
await generateSSO({
113112
config: netlifyConfig,
114113
functionsDir: FUNCTIONS_SRC,
115114
publishDir: PUBLISH_DIR,
116115
})
116+
117+
console.log('Writing updated config to publish dir...')
117118
const config_out = toml.stringify(netlifyConfig)
118119
await fs.writeFile(
119120
path.join(netlifyConfig.build.publish, 'netlify.toml'),

0 commit comments

Comments
 (0)