bridgetown-lit-renderer 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/bridgetown-lit-renderer/renderer.rb +3 -2
- data/lib/bridgetown-lit-renderer/version.rb +1 -1
- data/package.json +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f8f4ae03c036f36ea4dd3fb5bf924a80cb0eda2ca12957484436c89b9a1e407
|
4
|
+
data.tar.gz: 7a9df76765166b4c9eb06fbf6aff2df8bfc0fc1010686bd6b007f6a50ac21271
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6fffc5fc4150f49b3dfb65a550a1b5d1d4eff4243e2a750b4b4601df4d0d94ebc82332132e2bec3b7c073e71b996af66556800fb89cec52294d28a0a1999d27b
|
7
|
+
data.tar.gz: 76e7648e122b98cbe75d194c6088478a2399bffbfba742c1b6cc827bd022d337c8f02a6dafce9a846b5d75ea64b415ad00d8aee1fa1896c214b5cc837ddb6af7
|
data/CHANGELOG.md
CHANGED
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
11
11
|
|
12
12
|
## 1.1.0 - 2021-12-03
|
13
13
|
|
14
|
+
- Fix issue with loading project root's node_modules path
|
15
|
+
|
16
|
+
## 1.1.0 - 2021-12-03
|
17
|
+
|
14
18
|
- Switch to processing SSR through Node sidecar server and various other performance & caching enhancements
|
15
19
|
|
16
20
|
## 1.0.0 - 2021-09-25
|
@@ -13,7 +13,7 @@ module BridgetownLitRenderer
|
|
13
13
|
|
14
14
|
attr_accessor :site
|
15
15
|
|
16
|
-
def self.start_node_server
|
16
|
+
def self.start_node_server(node_modules_path)
|
17
17
|
return if serverpid
|
18
18
|
|
19
19
|
self.authtoken = SecureRandom.hex(64)
|
@@ -23,6 +23,7 @@ module BridgetownLitRenderer
|
|
23
23
|
{
|
24
24
|
"LIT_SSR_SERVER_PORT" => serverport.to_s,
|
25
25
|
"LIT_SSR_AUTH_TOKEN" => authtoken,
|
26
|
+
"NODE_PATH" => node_modules_path,
|
26
27
|
},
|
27
28
|
"node #{File.expand_path("../../src/serve.js", __dir__)}",
|
28
29
|
pgroup: true
|
@@ -86,7 +87,7 @@ module BridgetownLitRenderer
|
|
86
87
|
@render_notice_printed = true
|
87
88
|
end
|
88
89
|
|
89
|
-
self.class.start_node_server
|
90
|
+
self.class.start_node_server(site.in_root_dir("node_modules"))
|
90
91
|
|
91
92
|
output = Faraday.post(
|
92
93
|
"http://127.0.0.1:#{self.class.serverport}",
|
data/package.json
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bridgetown-lit-renderer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bridgetown Team
|
@@ -114,7 +114,7 @@ homepage: https://github.com/bridgetownrb/bridgetown-lit-renderer
|
|
114
114
|
licenses:
|
115
115
|
- MIT
|
116
116
|
metadata:
|
117
|
-
yarn-add: bridgetown-lit-renderer@1.1.
|
117
|
+
yarn-add: bridgetown-lit-renderer@1.1.1
|
118
118
|
rubygems_mfa_required: 'true'
|
119
119
|
post_install_message:
|
120
120
|
rdoc_options: []
|