Closed Bug 1845362 Opened 2 years ago Closed 2 years ago

SSR support for Glean.js

Categories

(Data Platform and Tools :: Glean: SDK, enhancement, P2)

enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: brosa, Assigned: brosa)

References

Details

Attachments

(1 file)

Update Glean.js to work properly with a project using SSR. When trying to compile an SSR project that uses Glean.js, errors are thrown because window.localStorage cannot be found. To fix this, we will only make calls to localStorage whenever the window object is defined.

Article discussing different ways to resolve this problem

Blocks: 1839930
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: