Skip to content

Commit

Permalink
Add happo wrapper module to provide auth token (#356)
Browse files Browse the repository at this point in the history
Add happo wrapper module to provide auth token
  • Loading branch information
sslotsky authored Aug 9, 2019
1 parent 2e26f4c commit 827d7a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .happo.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ module.exports = {
type: 'plain',
prerender: false,
setupScript: path.resolve(__dirname, 'happoSetup.js'),
renderWrapperModule: path.resolve(__dirname, 'happoRender.js'),
stylesheets: [path.join(__dirname, 'dist/manifold/manifold.css')],
plugins: [happoPluginTypeScript()],
};
5 changes: 5 additions & 0 deletions happoRender.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export default component => `
<manifold-connection>
<manifold-auth-token token="something|${new Date(Date.now() + 6.04e8).getTime()}"/>
${component}
</manifold-connection>`;

1 comment on commit 827d7a3

@vercel
Copy link

@vercel vercel bot commented on 827d7a3 Aug 9, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.