Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
bc176b3b
Commit
bc176b3b
authored
Nov 05, 2019
by
Tom Wieland
Committed by
Luis Alvarez D
Nov 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[with-firebase] Update to Node v10 and fix lint errors (#9318)
* Changed the version of node from 8 to 10 * fix lint errors
parent
e9e06099
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
12 deletions
+12
-12
package.json
examples/with-firebase-hosting-and-typescript/package.json
+1
-1
App.tsx
...irebase-hosting-and-typescript/src/app/components/App.tsx
+3
-3
Header.tsx
...base-hosting-and-typescript/src/app/components/Header.tsx
+4
-4
about.tsx
...h-firebase-hosting-and-typescript/src/app/pages/about.tsx
+2
-2
index.tsx
...h-firebase-hosting-and-typescript/src/app/pages/index.tsx
+2
-2
No files found.
examples/with-firebase-hosting-and-typescript/package.json
View file @
bc176b3b
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
"version"
:
"1.0.0"
,
"version"
:
"1.0.0"
,
"description"
:
"Host Next.js SSR app on Firebase Cloud Functions with Firebase Hosting redirects. Built with typescript."
,
"description"
:
"Host Next.js SSR app on Firebase Cloud Functions with Firebase Hosting redirects. Built with typescript."
,
"engines"
:
{
"engines"
:
{
"node"
:
"
8
"
"node"
:
"
10
"
},
},
"scripts"
:
{
"scripts"
:
{
"dev"
:
"next src/app"
,
"dev"
:
"next src/app"
,
...
...
examples/with-firebase-hosting-and-typescript/src/app/components/App.tsx
View file @
bc176b3b
import
Header
from
'./Header'
import
Header
from
'./Header'
;
const
App
=
({
children
}:
{
children
?:
any
})
=>
(
const
App
=
({
children
}:
{
children
?:
any
})
=>
(
<
main
>
<
main
>
<
Header
/>
<
Header
/>
{
children
}
{
children
}
</
main
>
</
main
>
)
)
;
export
default
App
export
default
App
;
examples/with-firebase-hosting-and-typescript/src/app/components/Header.tsx
View file @
bc176b3b
import
Link
from
'next/link'
import
Link
from
'next/link'
;
export
default
({
pathname
}:
{
pathname
?:
any
})
=>
(
export
default
({
pathname
}:
{
pathname
?:
any
})
=>
(
<
header
>
<
header
>
<
Link
href=
"/"
>
<
Link
href=
'/'
>
<
a
className=
{
pathname
===
'/'
?
'is-active'
:
''
}
>
Home
</
a
>
<
a
className=
{
pathname
===
'/'
?
'is-active'
:
''
}
>
Home
</
a
>
</
Link
>
</
Link
>
<
Link
href=
"/about"
>
<
Link
href=
'/about'
>
<
a
className=
{
pathname
===
'/about'
?
'is-active'
:
''
}
>
About
</
a
>
<
a
className=
{
pathname
===
'/about'
?
'is-active'
:
''
}
>
About
</
a
>
</
Link
>
</
Link
>
</
header
>
</
header
>
)
)
;
examples/with-firebase-hosting-and-typescript/src/app/pages/about.tsx
View file @
bc176b3b
import
App
from
'../components/App'
import
App
from
'../components/App'
;
export
default
()
=>
(
export
default
()
=>
(
<
App
>
<
App
>
<
p
>
About Page
</
p
>
<
p
>
About Page
</
p
>
</
App
>
</
App
>
)
)
;
examples/with-firebase-hosting-and-typescript/src/app/pages/index.tsx
View file @
bc176b3b
import
App
from
'../components/App'
import
App
from
'../components/App'
;
export
default
()
=>
(
export
default
()
=>
(
<
App
>
<
App
>
<
p
>
Index Page
</
p
>
<
p
>
Index Page
</
p
>
</
App
>
</
App
>
)
)
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment