File tree 4 files changed +4
-11
lines changed 4 files changed +4
-11
lines changed Original file line number Diff line number Diff line change 6
6
"apps" : [
7
7
{
8
8
"root" : " src" ,
9
- "outDir" : " dist/browser " ,
9
+ "outDir" : " dist" ,
10
10
"assets" : [
11
11
" assets" ,
12
12
" favicon.ico"
Original file line number Diff line number Diff line change 9
9
"rewrites" : [
10
10
{
11
11
"source" : " **" ,
12
- "function " : " ssrApp "
12
+ "destination " : " /index.html "
13
13
}
14
14
]
15
- },
16
- "functions" : {
17
- "predeploy" : " npm --prefix $RESOURCE_DIR run build"
18
15
}
19
16
}
Original file line number Diff line number Diff line change 14
14
"firestore-import" : " ./node_modules/.bin/ts-node ./firestore-import.ts" ,
15
15
"prerender" : " ./node_modules/.bin/ts-node ./prerender.ts" ,
16
16
"prerender:debug" : " ./node_modules/.bin/ts-node --inspect ./prerender.ts" ,
17
- "start:express-server" : " ./node_modules/.bin/ts-node ./server.ts" ,
18
- "build-functions" : " cd functions; npm run build" ,
19
- "deploy:local" : " firebase serve --only functions,hosting" ,
20
- "start:local" : " npm-run-all build-functions deploy:local"
17
+ "start:express-server" : " ./node_modules/.bin/ts-node ./server.ts"
21
18
},
22
19
"private" : true ,
23
20
"dependencies" : {
Original file line number Diff line number Diff line change @@ -10,15 +10,14 @@ import { readFileSync } from 'fs';
10
10
import { ngExpressEngine } from '@nguniversal/express-engine' ;
11
11
import { provideModuleMap } from '@nguniversal/module-map-ngfactory-loader' ;
12
12
13
- const { AppServerModuleNgFactory, LAZY_MODULE_MAP } = require ( './dist- server/main.bundle' ) ;
13
+ const { AppServerModuleNgFactory, LAZY_MODULE_MAP } = require ( './dist/ server/main.bundle' ) ;
14
14
15
15
16
16
enableProdMode ( ) ;
17
17
18
18
const app = express ( ) ;
19
19
20
20
const DIST_FOLDER = join ( process . cwd ( ) , 'dist' ) ;
21
- const DIST_SERVER_FOLDER = join ( process . cwd ( ) , 'dist-server' ) ;
22
21
23
22
const indexHtml = readFileSync ( join ( DIST_FOLDER , 'index.html' ) , 'utf-8' ) . toString ( ) ;
24
23
You can’t perform that action at this time.
0 commit comments