File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed
services/BookBuildService Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ export class BookBuildService implements Service {
37
37
private readonly pageService : PageService ,
38
38
) { }
39
39
public async build ( url_slug : string , signedWriterId ?: string ) : Promise < BuildResult > {
40
- // TODO: ADD authentication
41
40
if ( ! signedWriterId ) {
42
41
throw new UnauthorizedError ( 'Not logged in' )
43
42
}
@@ -73,7 +72,6 @@ export class BookBuildService implements Service {
73
72
const dest = path . resolve ( process . cwd ( ) , 'books' , book . id )
74
73
75
74
// TODO: ADD handle cache from s3
76
-
77
75
const pagesDir = `${ dest } /pages`
78
76
const baseExists = fs . existsSync ( dest )
79
77
if ( ! baseExists ) {
@@ -114,7 +112,6 @@ export class BookBuildService implements Service {
114
112
fs . writeFileSync (
115
113
`${ dest } /next.config.mjs` ,
116
114
nextConfigTempate ( {
117
- bucketUrl : ENV . bookBucketUrl ,
118
115
deployCode : deployCode ,
119
116
urlSlug : book . url_slug ,
120
117
} ) ,
Original file line number Diff line number Diff line change 1
1
type Props = {
2
- bucketUrl : string
3
2
deployCode : string
4
3
urlSlug : string
5
4
}
6
5
7
- export const nextConfigTempate = ( { bucketUrl , deployCode, urlSlug } : Props ) => {
6
+ export const nextConfigTempate = ( { deployCode, urlSlug } : Props ) => {
8
7
return `
9
8
import nextra from 'nextra'
10
9
You can’t perform that action at this time.
0 commit comments