Skip to content

fix(@schematics/angular): add helper script to spawn SSR server from dist#26322

Merged
alan-agius4 merged 1 commit intoangular:mainfrom
alan-agius4:ssr-add-script
Nov 13, 2023
Merged

fix(@schematics/angular): add helper script to spawn SSR server from dist#26322
alan-agius4 merged 1 commit intoangular:mainfrom
alan-agius4:ssr-add-script

Conversation

@alan-agius4
Copy link
Copy Markdown
Collaborator

This commit adds a helper script in the package.json when running ng add @angular/ssr or ng new --ssr that can be used to spawn the SSR server.

Example of script:

{
    "scripts": {
       "serve:ssr:my-app": "node dist/my-app/server/server.mjs"
    }
}

Closes #26315

…`dist`

This commit adds a helper script in the `package.json` when running `ng add @angular/ssr` or `ng new --ssr` that can be used to spawn the SSR server.

Example of script:
```json
{
    "scripts": {
       "serve:ssr:my-app": "node dist/my-app/server/server.mjs"
    }
}
```

Closes angular#26315
@alan-agius4 alan-agius4 requested a review from clydin November 10, 2023 12:27
@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Nov 10, 2023
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Nov 13, 2023
@alan-agius4 alan-agius4 merged commit 80b024b into angular:main Nov 13, 2023
@alan-agius4 alan-agius4 deleted the ssr-add-script branch November 13, 2023 07:27
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue with ng new for SSR Configuration and ng add @angular/ssr Not Updating package.json File for serve in prod

2 participants