Skip to content

Commit

Permalink
Add favicon.ico to avoid annoying errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ericclemmons committed Sep 6, 2015
1 parent 4e8269a commit 6c964c8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
Binary file added examples/react-v0.13/public/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions examples/react-v0.13/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import routes from "./routes";
export default express()
// Serve minified assets
.use(express.static(path.join(__dirname, "../dist")))
.use(express.static(path.join(__dirname, "../public")))

// Let React handle all routes
.get("*", function(req, res) {
Expand Down
Binary file added examples/react-v0.14/public/favicon.ico
Binary file not shown.
5 changes: 5 additions & 0 deletions examples/react-v0.14/src/app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import express from "express";
import Location from "react-router/lib/Location";
import path from "path";
import React from "react";
import { renderToString } from "react-dom/server";
import { Resolver } from "react-resolver";
Expand All @@ -8,6 +9,10 @@ import Router from "react-router";
import routes from "./routes";

export default express()
// Serve minified assets
.use(express.static(path.join(__dirname, "../dist")))
.use(express.static(path.join(__dirname, "../public")))

// Let React handle all routes
.get("*", function(req, res) {
const location = new Location(req.path, req.query);
Expand Down

0 comments on commit 6c964c8

Please sign in to comment.