Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gwleuverink committed Jan 11, 2024
1 parent d5fa909 commit 97fb4c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The `<x-bundle />` component bundles your import on the fly using [Bun](https://

{: .note }

> `<x-bundle />` Bahaves like a script tag. You may pass any attributes a script tag would accept, like `defer` or `async`
> You may pass any attributes a script tag would accept, like `defer` or `async`
<br />

Expand Down
6 changes: 6 additions & 0 deletions docs/production-builds.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,9 @@ You can control which paths are scanned by publishing the Bundle config file and
> In production the `BUNDLE_CACHING_ENABLED` env variable needs to be set to `true`. When the variable is not set Bundle will automatically enable this option in production environments.
Furthermore it is recommended to cache your blade views on the server by running `php artisan view:cache` in your deploy script.

---

If a import somehow was deleted from storage on your production server, Bundle will try to bundle the script on the fly.

This failover system won't work on environments without a writable storage path (Like Vapor or other serverless setups) since Bun requires us to write a temporary file on the same disk Bun is invoked from.

0 comments on commit 97fb4c0

Please sign in to comment.